Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.8.0, 5.10
-
None
-
Fedora 25.
QT 5.8 from QT Web installer.
QT 5.10 build from source (github)
gcc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)
Description
Example project here : https://github.com/conradjones/qt-list-crash
Handling the drag enter event in a form when dragging from a treeview with file system model, crashes unless I copy the QUrlList locally,
// This crashes if (event->mimeData()->hasUrls()) { QList<QUrl>::iterator i = event->mimeData()->urls().begin(); while (i != event->mimeData()->urls().end()) { qDebug() << (*i).path()<< endl; i++; } } // This does not if (event->mimeData()->hasUrls()) { QList<QUrl> urlList = event->mimeData()->urls(); QList<QUrl>::iterator i = urlList.begin(); while (i != urlList.end()) { qDebug() << (*i).path()<< endl; i++; } } // This does not if (event->mimeData()->hasUrls()) { QList<QUrl> urlList = event->mimeData()->urls(); for (int i = 0; i < urlList.size(); ++i) { qDebug() << urlList.at(i).path()<< endl; } }