Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
5.12.1, 5.12.4, 5.13.0
-
None
-
macOS 10.14.6
-
-
137cbd1c7200809cc3945c6d4b6deee560cdc9fc
Description
Reproduced on macOS 10.14.6 in Qt 5.12.1, 5.12.4, 5.13.0, but not in 5.9.6.
Not reproduced on Windows.
When performing drag and drop in QTreeWidget with the drag and drop mode set to QAbstractItemView::InternalMove some items disappear. The attached screenshots show the initial widget state and the state after dropping item 1 on item 0.
Sample code:
#include <QApplication> #include <QTreeWidget> int main(int argc, char *argv[]) { QApplication app(argc, argv); QTreeWidget widget; widget.setColumnCount(1); widget.headerItem()->setText(0, "Tree"); widget.setDragEnabled(true); widget.setDragDropMode(QAbstractItemView::InternalMove); QList<QTreeWidgetItem*> items; for(int i = 0; i < 5; ++i) { items.append(new QTreeWidgetItem((QTreeWidget*)0, {QString("Item: %1").arg(i)})); } widget.insertTopLevelItems(0, items); widget.show(); return app.exec(); }
Attachments
Issue Links
- duplicates
-
QTBUG-77427 setDropAction() is not respected in ItemViews during move operation on MAC
-
- Closed
-