what I wanna perhaps like this:
when a right mouse button is pressed and we go down and right with a cursor. As in letter 'L'. Our mouse gesture will close the window.
I googled such gesture examples on PyQt4 ,but hard to find one ,so your help will be greatly appreciated !
thanks inadvance !

In wxpython, it's 4 lines of code

    mg =wx.lib.gestures.MouseGestures (our_panel, True , wx.MOUSE_BTN_LEFT)
    mg .SetGesturePen(wx.Colour(255 ,0 ,0 ), 2)
    mg .SetGesturesVisible(True)
    mg .AddGesture ('DR', our_method)

I don't know the PyQT equivalent.