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

MouseArea onRelease event is not triggered after second finger touch'n'release

XMLWordPrintable

    • All
    • 73094e598f (qt/tqtc-qtdeclarative/6.2)

       

      With the following simple MouseArea example:

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          MouseArea{
              anchors.fill: parent
              onClicked: (mouse) => { console.log("onClicked") }
              onPressed: (mouse) => { console.log("onPressed"); }
              onPressAndHold: (mouse) => { console.log("onPressAndHold") }
              onReleased: (mouse) => { console.log("onReleased"); }
              onPositionChanged: (mouse) => { console.log("onPositionChanged"); }
          }
      }
      

      When

      1. Touch first finger
      2. Touch and release second finger
      3. Release first finger

      ...and there will be no 'release' event.

      Output is only:

      D qml     : : onPressed
      D qml     : : onPositionChanged
      D qml     : : onPositionChanged
      D qml     : : onPositionChanged
      D qml     : : onPositionChanged

       

      But when releasing left first (while holding down the second) it works.

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

            srutledg Shawn Rutledge
            kiibimees Lauri Laanmets
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: