Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89038

QPinchRecognizer does not always send a QGestureFinish

    XMLWordPrintable

Details

    • Windows

    Description

      In general the QPinchGesture / recognizer work fine, however, in my setup where I have a QML QtWebView component and I catch the QPinchGesture to override the default behaviour of Pinching, to implement zooming based on zooming the HTML (<body style="zoom: x%">) instead of scaling the canvas, only the first time when zooming, the QPinchGesture comes in with a QGestureFinish, which gives me the change to finish the zoom.

      After that, it doesn't anymore, or, only sporadic, or only after some time (seconds?).

      I worked around it, by guarding the touchevents (on TouchEnd and no QGestureFinish received, I just finish the zoom); but it would be better if I had not to.

      Attachments

        1. gestures.pri
          0.8 kB
          Hans Dijkema
        2. zcclickgesture.cpp
          0.9 kB
          Hans Dijkema
        3. zcclickgesture.h
          0.7 kB
          Hans Dijkema
        4. zcclickrecognizer.cpp
          6 kB
          Hans Dijkema
        5. zcclickrecognizer.h
          1 kB
          Hans Dijkema
        6. zcpageturngesture.cpp
          1 kB
          Hans Dijkema
        7. zcpageturngesture.h
          0.9 kB
          Hans Dijkema
        8. zcpageturnrecognizer.cpp
          4 kB
          Hans Dijkema
        9. zcpageturnrecognizer.h
          0.7 kB
          Hans Dijkema
        10. zcscrollgesture.cpp
          1 kB
          Hans Dijkema
        11. zcscrollgesture.h
          1 kB
          Hans Dijkema
        12. zcscrollrecognizer.cpp
          4 kB
          Hans Dijkema
        13. zcscrollrecognizer.h
          0.8 kB
          Hans Dijkema
        14. zctouchgestureutils.cpp
          0.7 kB
          Hans Dijkema
        15. zctouchgestureutils.h
          0.4 kB
          Hans Dijkema
        16. zctouchinhibitor.cpp
          2 kB
          Hans Dijkema
        17. zctouchinhibitor.h
          0.6 kB
          Hans Dijkema
        18. zctouchprocessor.cpp
          21 kB
          Hans Dijkema
        19. zctouchprocessor.h
          3 kB
          Hans Dijkema
        20. zczoomprocessor.cpp
          5 kB
          Hans Dijkema
        21. zczoomprocessor.h
          2 kB
          Hans Dijkema
        22. zczoomtip.cpp
          2 kB
          Hans Dijkema
        23. zczoomtip.h
          0.4 kB
          Hans Dijkema
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tvete Paul Olav Tvete
            hansdijkema Hans Dijkema
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes