Unsolved Swipe Gesture not working.
-
Hello guys,
I'm trying to implement gesture recognition for a touchscreen Qt application that I'm working on. The gesture is a swipe on an image widget. But the gesture input doesn't seem to be recognized. Could somebody help me out?
Link to the image-gesture example : http://doc.qt.io/qt-5/qtwidgets-gestures-imagegestures-example.html
Your help will be appreciated :)
-
@Isles
probably your touchscreen (or to be more specific it's driver) doesn't send touch events to the system, but only mouse events instead.
In the worst case you can write your custom gesture recognizer to create an artificial gesture event. -
@raven-worx
"Qt::PinchGesture" event is triggered. But Qt::SwipeGesture is not triggered! -
@Isles
and you are running the unmodified example code?
How did you start the application? I see in the example code that certain gestures are disabled via command line parameters. -
@raven-worx
Yes, I'm running the unmodified example code.I start the application from Qt Creator. You are correct there are options to disable Gestures via command line parameters. But options to disable like "no-pan" or "no-pinch" or " no-swipe" must be explicitly set to disable them. Since I'm running from Qt Creator, I haven't set any of these options. Hence all three gestures are enabled.