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

MouseArea goes in invalid state after touch with two fingers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.0 RC
    • 5.12.0 Beta 3
    • None
    • Dell XPS 15 9560
      Microsoft Windows 10 Pro (Version 10.0.17134 Build 17134)
    • 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. log.txt
          93 kB
        2. main.qml
          0.5 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: