Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [Solved] How to implement QPanGesture and QSwipeGesture for touch screen desktop programming.

    General and Desktop
    1
    2
    3926
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sam last edited by

      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:

      1. "Handling Gestures in Qt":http://www.developer.nokia.com/Community/Wiki/Handling_Gestures_in_Qt
      2. "Custom Swipe Gesture":http://www.developer.nokia.com/Community/Wiki/Custom_Swipe_Gestures_in_Qt
      3. "Video tutorial on Using Multi-touch screen and gestures in Qt":http://qt-project.org/videos/watch/using_multi_touch_and_gestures_with_qt
      4. "Gesture Programming":http://doc.qt.nokia.com/4.7/gestures-overview.html

      Regards
      Soumitra.

      1 Reply Last reply Reply Quote 0
      • S
        Sam last edited by

        Implemented using a custom class that inherits QGestureRecognizer Class.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post