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

MouseArea goes in invalid state after touch with two fingers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12.0 Beta 3
    • Fix Version/s: 5.12.0 RC
    • Labels:
      None
    • Environment:
      Dell XPS 15 9560
      Microsoft Windows 10 Pro (Version 10.0.17134 Build 17134)
    • Platform/s:
      Linux/X11, Windows

      Description

      With the following code:

      MouseArea {
              id: mouseArea
      
              property alias color: background.color
      
              width: 300
              height: 200
              onClicked: console.debug("onClicked", mouseArea)
              onDoubleClicked: console.debug("onDoubleClicked", mouseArea)
      
              Rectangle {
                  id: background
      
                  anchors.fill: parent
                  color: "red"
                  opacity: 0.7
              }
      
              Label {
                  anchors.centerIn: parent
                  text: qsTr("pressed: %1").arg(mouseArea.pressed)
              }
          }
      

      Mouse area goes in pressed state after touch with 2 fingers (For the output below the error occurs at the second touch with 2 fingers).

      Then it does not respond to any touches, mouse clicks for some time (multiple touch oder clicks do not change the pressed state).

       

      Output of the example it attached log file:

       

        Attachments

        1. main.qml
          0.5 kB
        2. log.txt
          93 kB

          Issue Links

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

            Activity

              People

              • Assignee:
                srutledg Shawn Rutledge
                Reporter:
                permotion88 Karol Polak
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes