I have a working PyQt GUI that has a scroll area with some matplotlib plots. As 
expected I see a scrollbar on the right side and the bottom of the scroll area.
I am using a MAC When I move my mouse over the Scroll Bar and then I use the 
two-finger pan gesture i.e mouse wheel, I see mouse wheel events show up in my 
widget event handler. But for this to happen I have to have my mouse hovering 
over the scrollbar itself. It doesn't work if I do it with my mouse inside the 
scroll area.
I would like to be able control the scroll area(pan left/right/up/down) with 
the 2 finger PanGesture and scroll up/down left/right when my mouse is inside 
the Scroll Area.
I have tried listening to gesture events, with a 
self.grabGesture(QtCore.Qt.PanGesture) API but I don't see any gesture events 
only Touch events.
My real goal is not necessary touch gestures. just a simple way to scroll the 
scrolls area using the keys and 
mouse/mouse-wheel-OR-gesture-in-case-of-MAC-touchpad without having to go to 
the scrollbar on the left or bottom. 
How can I achieve this in PyQt?
Thx,
Sarvi
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to