Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
4.5.1
-
None
Description
When ESC key is pressed while dragging an item, if the mouse is navigated back to some drop area (without releasing the mouse button), the dragging is still active, this is different from the standard behaviour on Windows and Linux. Reproducible with the following example:
#include <QtGui> class TreeWidget : public QTreeWidget { Q_OBJECT public: TreeWidget() : QTreeWidget(0) { setAcceptDrops(true); setDragEnabled(true); new QTreeWidgetItem(this, QStringList() << "Oak"); new QTreeWidgetItem(this, QStringList() << "Fir"); new QTreeWidgetItem(this, QStringList() << "Pine"); } }; #include "main.moc" int main(int argc, char **argv) { QApplication app(argc, argv); QWidget widget; TreeWidget box; QVBoxLayout layout(&widget); layout.addWidget(&box); widget.show(); return app.exec(); }