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
        2. zcclickgesture.cpp
          0.9 kB
        3. zcclickgesture.h
          0.7 kB
        4. zcclickrecognizer.cpp
          6 kB
        5. zcclickrecognizer.h
          1 kB
        6. zcpageturngesture.cpp
          1 kB
        7. zcpageturngesture.h
          0.9 kB
        8. zcpageturnrecognizer.cpp
          4 kB
        9. zcpageturnrecognizer.h
          0.7 kB
        10. zcscrollgesture.cpp
          1 kB
        11. zcscrollgesture.h
          1 kB
        12. zcscrollrecognizer.cpp
          4 kB
        13. zcscrollrecognizer.h
          0.8 kB
        14. zctouchgestureutils.cpp
          0.7 kB
        15. zctouchgestureutils.h
          0.4 kB
        16. zctouchinhibitor.cpp
          2 kB
        17. zctouchinhibitor.h
          0.6 kB
        18. zctouchprocessor.cpp
          21 kB
        19. zctouchprocessor.h
          3 kB
        20. zczoomprocessor.cpp
          5 kB
        21. zczoomprocessor.h
          2 kB
        22. zczoomtip.cpp
          2 kB
        23. zczoomtip.h
          0.4 kB
        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