<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">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.</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">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.</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">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.</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">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.</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px;
vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">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. </div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">How can I achieve this in PyQt?</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">Thx,</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px;
vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">Sarvi</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div></div></body></html>