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

MouseArea / Button stop working after grabbing by DragHandler

    XMLWordPrintable

Details

    • Linux/Yocto

    Description

      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");
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated: