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