QWidget Gestures Not Working
I'm trying to handle gestures in my
Having followed the following examples courtesy of Qt, I am not able to receive any gesture events (I'm using Qt 5.9.1):
I've overridden the
event(QEvent *)function, implementing my own
gestureEvent(QGestureEvent *)function as described in the example, as well as registering the
QWidgetfor gestures in the constructor by using the
grabGesture()function for pan, pinch and swipe gestures.
However, no gesture triggers the
gestureEventfunction in my widget.
are you sure your TouchScreen (driver) sends real touch events? Does it support multi-touch?
Many TouchScreens only support single touch points and simulate mouse events. Which do not trigger gesture events.