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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes