[Solved] How to implement QPanGesture and QSwipeGesture for touch screen desktop programming.
I am developing an application that will run on touchscreen monitor. However i didnt find much resources on net regarding QPanGesture and QSwipeGesture examples.
My requirement is to achieve something like "PhotoViewer example":http://doc.qt.nokia.com/4.7-snapshot/demos-declarative-photoviewer.html but without using qml.
I want to add the same functionality of QPanGesture and QSwipeGesture as given in the above example that can be found in Qt creator Demo and Examples.
However I am able to get the events for PanGesture and SwipeGesture, but i dont have any clue how should i handle/program to achieve the above requirement.
I have checked some links as follows:
- "Handling Gestures in Qt":http://www.developer.nokia.com/Community/Wiki/Handling_Gestures_in_Qt
- "Custom Swipe Gesture":http://www.developer.nokia.com/Community/Wiki/Custom_Swipe_Gestures_in_Qt
- "Video tutorial on Using Multi-touch screen and gestures in Qt":http://qt-project.org/videos/watch/using_multi_touch_and_gestures_with_qt
- "Gesture Programming":http://doc.qt.nokia.com/4.7/gestures-overview.html
Implemented using a custom class that inherits QGestureRecognizer Class.