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

Attached Drag.active property cannot be changed if dragType is Drag.None

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6.0
    • None

    Description

      The attached program binds the MouseArea.drag.active property to the Drag.active property of a QQuickItem; however, while the first property changes, the second never does:

            Drag.active: mouseArea.drag.active
            Drag.dragType: Drag.None
      
            Drag.onActiveChanged: {
              console.log("Active changed.." + Drag.active)
              Drag.startDrag()
            }
            ...
            MouseArea {
              id: mouseArea
              ...
              drag.onActiveChanged: {
                console.log("mouse area Drag prop became active.." + drag.active)
              }
      

      The "Active changed.." message is never printed.

      Attachments

        Issue Links

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

          Activity

            People

              mardy Alberto Mardegan
              mardy Alberto Mardegan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes