Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109330

DnD won't send "drop()" unless mouse moves > 1 px after QDrag::exec() (regression QTBUG-34331)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.1
    • GUI: Drag and Drop
    • None
    • Windows

    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).

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            wschenke Winfried Schenke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes