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 own gestureEvent(QGestureEvent *) function as described in the example, as well as registering the QWidget for gestures in the constructor by using the grabGesture() function for pan, pinch and swipe gestures.

    However, no gesture triggers the gestureEvent function in my widget.


  • Moderators

    @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.