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

MouseArea / Button stop working after grabbing by DragHandler

XMLWordPrintable

    • Linux/Yocto

      Contact:  Please contact IMayornykov@luxoft.com  ivanmaiornykov  MShvyndya@luxoft.com

      DragHandler doesn't release the mouse and steals all further press/release events. It's possible to reproduce the bug with the following code:

      import QtQuick 2.12
      import QtQuick.Window 2.2
      Window {
          id: root
          width: 1000
          height: 1000
          color: mouseArea.pressed ? "red" : "blue"
          visible:true
          DragHandler {
              target: null
              minimumPointCount: 3
              maximumPointCount: 5
      
              onCentroidChanged: {
                  console.info("RRA: onCentroidChanged");
              }
      
              onActiveChanged: {
                  console.info("RRA: onActiveChanged");
              }
          }
      
          MouseArea {
              id: mouseArea
      
              anchors.fill: parent
      
              onPressed: {
                  console.info("RRA: onPressed");
              }
      
              onReleased: {
                  console.info("RRA: onReleased");
              }
      
              onClicked: {
                  console.info("RRA: onClicked");
              }
          }
      }
      

        1. qtbug85798.tar.gz
          0.8 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            srutledg Shawn Rutledge
            nreddappagari Nasresh reddappagari
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: