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

MouseArea Freezes when device is rotated during mouse down/pressed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.9.1, 5.9.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      iOS and Android (OS version doesn't seem to matter)

      Description

      This is seen when using a QML MouseArea to capture the mouse/touch events using onPressed and onPositionChanged.

      In the attached example the mouse area is used to draw on a canvas as this is the scenario in which it was first seen.

      On a tablet running the app use a finger to activate the MouseArea functionality drawing on the canvas and continue to do so (i.e. keep finger pressed on the screen) while rotating the device.

      Once the screen has rotated the mouse area will stop functioning and it is no longer possible to draw on the canvas.

      Note: I have found that it is possible to work around this by adding an Item element inside the MouseArea. See the main.qml in the example and uncomment the Item at the end of the file.

       

        Attachments

        1. MouseAreaFreezeBug.zip
          6 kB
          Rogerio Nicolau

          Issue Links

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

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              rogerio Rogerio Nicolau
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are 2 open Gerrit changes