Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.4.1
-
None
Description
DnD won't send "drop()" unless mouse moves > 1 px after QDrag::exec() (regression QTBUG-34331). Works well under LINUX. Works well under Windows with Qt 6.4.0. Works even well under Windows with Qt 6.4.1, if the previous version of 'qtbase/src/plugins/platforms/windows/qwindowsdrag.cpp' is reinstalled.
The bug is reproducable with 'app' from the attached 'qtbug.zip'. Start 'app' from a shell, a window with a label and the text '???' appears. The event filter of 'app' handles the events DragEnter, DragMove, Drop and MouseButtonPress for the label. Each event is visualized with qDebug().
Copy a arbitrary plain text to the clipboard and press the mid mouse button anywhere over the label. The QEvent::DragEnter and the mentioned text will not appear, unless the mouse moves (you can avoid the movement e.g. by holding the mouse upside down).