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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-68078 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
265024,3 | doc: Use DragHandler rather than MouseArea in the externaldrag snippet | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
356427,2 | doc: Use DragHandler rather than MouseArea in the externaldrag snippet | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
356432,3 | doc: Use DragHandler rather than MouseArea in the externaldrag snippet | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
572000,3 | doc: Stop telling users that DragHandler is not for DnD | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
572104,2 | doc: Stop telling users that DragHandler is not for DnD | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
572687,2 | doc: Stop telling users that DragHandler is not for DnD | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
573326,2 | doc: Stop telling users that DragHandler is not for DnD | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
573339,2 | doc: Stop telling users that DragHandler is not for DnD | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
574754,2 | doc: Stop telling users that DragHandler is not for DnD | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |