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

Touches cancelled when interacting with multiple windows

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 68369237b (dev), 35da0bb56 (6.6), 9d7b8fade (tqtc/lts-6.5)

    Description

      I have an application where I use multiple windows. It is a music making application and I have a piano keyboard, and the instrument being shown on another window. I really need to use a Window instead of any other QuickItem because I can host external AUv3 and they need to get properly embedded in the UI.

      When users are playing the keyboard and then try to change a parameter in the engine window, the key gets stuck. I believe this happens because the touch areas live in different windows, and the first one loses focus.

      I have attached an example where I demonstrate this problem. I have two sets of row layouts with rectangle that react to touch. If you touch on a rectangle on the red zone, keep the finger pressed, and then touch on a rectangle on the green zone, if you lift the finger on the red zone, it will keep white (stuck).

      I have used MouseArea for sake of simplicity but the problem happens with MultiPointTouchArea too.

      Attachments

        1. 9d7b8fa.diff
          3 kB
        2. IMultiTouchArea.cpp
          1 kB
        3. IMultiTouchArea.h
          0.6 kB
        4. log.txt
          6 kB
        5. qt-all-6.5.3-with-patch.log
          411 kB
        6. QTBUG-118909-crosshairs.tgz
          2 kB
        7. test-touches.mov
          1.05 MB
        8. test-window.zip
          2 kB
        9. touches-cancelled-when-interacting-with-another-window.mp4
          1.37 MB
        10. touch-responds-when-interacting-with-elements-above.mp4
          613 kB
        11. window-interaction-bug.jpg
          window-interaction-bug.jpg
          487 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-118909
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              sinosoidal Nuno Santos
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change