Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.4.0
-
None
-
Linux / Qt 5.4.0
Description
The basis drag / drop functionality doesn't work anymore. The following example works in Qt 5.3.2 but not in Qt 5.4.0:
void ListView::mouseMoveEvent(QMouseEvent* event) { TRACE; if (!(event->buttons() & Qt::LeftButton)) { return; } if ((event->pos() - mMousePressPosition).manhattanLength() < QApplication::startDragDistance()) { return; } QDrag* drag = new QDrag(this); QMimeData* mimeData = new QMimeData; mimeData->setText(QString::fromLatin1("ABC")); mimeData->setUrls(QList<QUrl>() << QUrl::fromLocalFile("./test.cc")); drag->setMimeData(mimeData); qDebug() << Q_FUNC_INFO << mimeData->text(); qDebug() << Q_FUNC_INFO << mimeData->urls(); Qt::DropAction dropAction = drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction); qDebug() << Q_FUNC_INFO << "drop:" << dropAction; }
Attachments
Issue Links
- is required for
-
QTBUG-43201 Issues to be fixed before 5.4.1
- Closed
- relates to
-
QTBUG-43441 [REG 5.3.1-> 5.4][X11]: Drag and drop doesn't work between applications
- Closed
-
QTBUG-44367 Drag and Drop not working on Linux
- Closed
- resulted from
-
QTBUG-39651 Windows: QListWidget internal move leaks QDrag objects
- Closed
For Gerrit Dashboard: QTBUG-43436 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
103056,1 | Fix drag and drop regression | 5.4 | qt/qtbase | Status: ABANDONED | +1 | 0 |
103221,2 | Fix drag and drop regression | 5.4.1 | qt/qtbase | Status: MERGED | +2 | 0 |