Qt 5.0.2 & 5.1.0 Drag and Drop crash
-
I have debugged a little in qt's code and there is something weird.
Before I rename an item everything works fine and the function QWindowsOleDropTarget::Drop qwindowsdrag.cpp 683 is called only when I release the mouse button over the item I want to do the drop on.
After I have renamed an item I start a drag, the dragEnterEvent occurs one time, then dragMoveEvent occurs one time too and the program crashes under QWindowsOleDropTarget::Drop qwindowsdrag.cpp 683 but I never released the button so this drop should not have occured.
If , after I renamed an item (so the app should crash the next time I drag an item in the treeview), I open an explorer windows, start to drag an item in it and press escape to cancel the drag then come back to my application and start a drag I don't crash and everything works fine.I am on Windows 7 x64 with Qt 5.1.0 (vs2010)
QtCreator designer has a very similar problem, I can't drag widget from the toolbox until I canceled a drag with ESC in an explorer window. If I delete a widget in the designer the pb reappear and I must cancel a drag again in an explorer window.
-
Hi,
Can you write a little test program showing the problem ? You could then open a "bug report":http://bugreports.qt-project.org/issues/ with it
-
The issue still exists in QT 5.2 for Ubuntu and it does not only affect QTreeView but also the QPlainTextEdit affected or others.
-
https://bugreports.qt-project.org/browse/QTBUG-33057
I think it should be the same one.
-
i have the same problem, in this link explain more about that.
https://bugreports.qt-project.org/browse/QTBUG-33635?focusedCommentId=229983&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-229983