Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8
-
None
Description
If dragging starts from outside an item that includes a DragHandler, the item's DragHandler will be activated when the cursor moves over the item.
Steps to Reproduce:
- Run the snippet
- Start dragging from outside the red rectangle
- Move the cursor over the rectangle
- Then try to move it outside again
- Drop it
EXPECTED:
The rectangle's DragHandler should not be activated since dragging started from outside the rectangle
ACTUAL
- The rectangle's DragHandler is activated as long as the cursor is inside the rectangle.
- The red rectangle moves with the cursor (in case of commenting target: null)
import QtQuick import QtQuick.Window import QtQuick.Controls ApplicationWindow { id: root width: 500 height: 500 visible: true Rectangle { x: 200 y: 200 width: 100 height: 100 color: "red" DragHandler { onActiveChanged: print("active:", active) // target: null } } }