Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Swipe Gesture not working.
Qt 6.11 is out! See what's new in the release blog

Swipe Gesture not working.

Scheduled Pinned Locked Moved Unsolved Brainstorm
5 Posts 2 Posters 2.9k Views 1 Watching
  • 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.
  • I Offline
    I Offline
    Isles
    wrote on last edited by
    #1

    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 :)

    raven-worxR 1 Reply Last reply
    0
    • I Isles

      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 :)

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • I Offline
        I Offline
        Isles
        wrote on last edited by
        #3

        @raven-worx
        "Qt::PinchGesture" event is triggered. But Qt::SwipeGesture is not triggered!

        raven-worxR 1 Reply Last reply
        0
        • I Isles

          @raven-worx
          "Qt::PinchGesture" event is triggered. But Qt::SwipeGesture is not triggered!

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @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.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          I 1 Reply Last reply
          0
          • raven-worxR raven-worx

            @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.

            I Offline
            I Offline
            Isles
            wrote on last edited by
            #5

            @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.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved