Unsolved QWidget Gestures Not Working
-
I'm trying to handle gestures in my
QWidgets
application.Having followed the following examples courtesy of Qt, I am not able to receive any gesture events (I'm using Qt 5.9.1):
http://doc.qt.io/qt-4.8/gestures-overview.html
I've overridden the
event(QEvent *)
function, implementing my owngestureEvent(QGestureEvent *)
function as described in the example, as well as registering theQWidget
for gestures in the constructor by using thegrabGesture()
function for pan, pinch and swipe gestures.However, no gesture triggers the
gestureEvent
function in my widget. -
@webzoid
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.