Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.0.2
-
None
-
Mac OS X 10.8, latest qt5/stable
-
qtbase/stable: 00859fe32f90154bb934644ec067d4406a8aa821
Description
Drag and drop the items around the view, and items just disappear while dropping.
#include <QtWidgets> int main(int argc, char *argv[]) { QApplication app(argc, argv); QListWidget list; list.setDragEnabled(true); list.setDropIndicatorShown(true); list.setDragDropMode(QAbstractItemView::InternalMove); for (int i = 0; i < 10; ++i) { list.addItem(QString::number(i)); list.item(i)->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled); } list.show(); return app.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-31061 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
55747,1 | Cocoa DND: respect QDropEvent::setDropAction() | stable | qt/qtbase | Status: MERGED | +2 | 0 |