Automatic Handling of QGestureEvents
-
Our system has a touchscreen system and we have small UI elements like QPushButton that we want to interact with the Gesture System of Qt.
We register the UI Elements for the gestures we want them to handle - QPushButton uses grabGesture(Qt::TapGesture). We added an EventFilter to make sure that the gesture arrives correctly at the QPushButton - and it does.
But for some reason, it does nothing with the event. Reading from the documentation - https://doc.qt.io/qt-5/gestures-overview.html it would imply, that even a simple TapGesture Event handling on a PushButton must be implemented explicitly.
Is this a correct assumption? -
Hi,
Yes it is correct.
You are the one who knows what should happen with these gestures.