Details
-
Bug
-
Resolution: Cannot Reproduce
-
P1: Critical
-
None
-
5.4.1
-
None
-
Win8, Qt5.4.1, QtCreator 3.3.1
Description
I noticed that my old code stop working correctly when I had upgraded to Qt 5.4.1. Part of code is below:
TargetItemListWidget::TargetItemListWidget(QWidget * parent) : QListWidget(parent) { setMouseTracking(false); setDragEnabled(false); setDragDropMode(QAbstractItemView::InternalMove); setDefaultDropAction(Qt::MoveAction); setSelectionMode(QAbstractItemView::ExtendedSelection); setSelectionBehavior(QAbstractItemView::SelectRows); } void TargetItemListWidget::dropEvent(QDropEvent * event) { QListWidget::dropEvent(event); emit dropItem(); }
After drag'n'drop QListWidgetItem is deleted. So now I temporarily solved this problem by adding clearSelection() after emit dropItem()