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

MouseArea Freezes when device is rotated during mouse down/pressed



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


      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.



          Issue Links

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



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


                • Created:

                  Gerrit Reviews