Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.13.0, 5.15.2
-
-
137cbd1c7200809cc3945c6d4b6deee560cdc9fc (qt/qtbase/5.13) a014300898bd3bd574ef19bba7123d4b5a07789b (qt/tqtc-qtbase/dev) 14544cc5ecb7a21e8c9b5e6d7c238fc8db68ae4f (qt/qtbase/6.1) 4ef45d66405147458b3bffda0545a2e7453c8665 (qt/qtbase/6.0)
-
Bug Fixing Candidates, UI Bug Fixing Q1/2021
Description
The Cocoa platform plugin does not respect QDropEvent::setDropAction(). If dropAction is set to Qt::IgnoreAction, even that QTreeWidget::dropEvent deletes the item that has been moved.
It is working fine with Windows, issue is only on MAC.
Please refer to the attached sample.
1. While pressing the appropriate "Move" modifier key (e.g. Cmd on Mac, Shift on Windows),
2. drag and drop Item F from Folder 2 to Folder 1.
3. On Windows and Linux, this properly "moves" the item from one folder
to the other.
On the Mac, this causes both F and G items from Folder 2 to disappear.
The use-case for this is to track the items deleted and does not want the base implementation to do the deletion of moved item from the source. Ideally pEvent->setDropAction(Qt::IgnoreAction) should have worked.
Attachments
Issue Links
- is duplicated by
-
QTBUG-79085 QTreeWidget items disappear after performing drag and drop
-
- Closed
-
-
QTBUG-76316 Item dragged in QListWidget disappears
-
- Closed
-
-
QTBUG-81962 QDropEvent::setDropAction(Qt::DropAction) is ignored on macOS
-
- Closed
-
For Gerrit Dashboard: QTBUG-77427 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
272216,4 | Cocoa: Set the accepted action to be the one from the response | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |
329896,7 | macOS: Don't override action set during drop handling | dev | qt/qtbase | Status: MERGED | +2 | 0 |
346276,6 | ItemViews: don't delete dragged items when a subclass accepted the move | dev | qt/qtbase | Status: MERGED | +2 | 0 |
346388,2 | macOS: Don't override action set during drop handling | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
346389,2 | macOS: Don't override action set during drop handling | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |
346390,2 | macOS: Don't override action set during drop handling | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
346863,2 | ItemViews: don't delete dragged items when a subclass accepted the move | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |