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

MouseArea stops working after OS steals release event

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.4
    • 5.8.0
    • None
    • iPad 2 (MC769BZ/A), running iOS 7.1 (11D167),
      iPad Air (A1474), running iOS 10.3
    • dd2657e30a42c269f47195d61a9fe8a5fff02912

    Description

      Using a QtQuick MouseArea on iOS, whenever the user presses the area (touch down) and the release (touch up) happens in a system context (if we press home on iOS or recent apps on Android, for instance) mouse area is stuck in pressed state forever, and stops responding to any touch events.

      I recorded this bug on a small 20s video, attached to this bug report.
      Also attached is the code I used for the test.

      What seems to happen is that, whenever MouseArea detects a pressed event (or touch down), it waits for the corresponding release event, but as we go out of the app context when doing a gesture on iOS, the release event is never received by mouseArea, and it remains forever waiting for the release event, in pressed state.

      Attachments

        1. MouseareaTest.mp4
          5.76 MB
          Luiggi Reffatti
        2. TestRect.qml
          2 kB
          Luiggi Reffatti

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              lmreffatti Luiggi Reffatti
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes