Tap Gesture Example on Desktop: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Revision as of 17:54, 14 January 2015
Just yesterday a team mate asked me how to fake a gesture event on a desktop, say by clicking on a button, and I quickly wrote this example using Qt Designer form, a push button when clicked sends a tap gesture. Comments welcome :)
PS. Just remember: Gesture objects are not constructed directly by developers. They are created by the QGestureRecognizer object that is registered with the application; see QGestureRecognizer::registerRecognizer().