Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11
-
None
-
4506b936b (dev), 899b8baef (6.8), 76ecedaf6 (6.7), 56eacc22e (tqtc/lts-6.5), 3b46bea49 (tqtc/lts-6.2), 2968e444a (tqtc/lts-5.15)
Description
There are two kinds: within the scene, and integrating with the operating system. So far, MouseArea handles both, and DragHandler handles neither. (You can just move an Item around within the scene, but dropping it on a DropArea doesn't do anything, and you can't drag it out of the window.)
DropArea is of course an Item. Should we have an equivalent Handler?
Worst case, we could have an imperative API to start the drag. (The KDE Plasma project has been getting away with that so far, by using C++ API.) But we can do better... but it needs some thought, because IMO the existing QtQuick DnD API is messy. It should be easier for app developers to work with.
Attachments
Issue Links
- depends on
-
QTBUG-68080 we need to move popup event forwarding logic from QWidgetWindow::handleMouseEvent() to QGuiApplication
- Closed
- relates to
-
QTBUG-76310 Dragging (QDrag) triggered by touch event requires an additional press to move drag target
- Closed
-
QTBUG-68079 allow DragHandler to be used as an attached property
- Reported