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

Widget rejects drag and drop operation if it's not the first widget the drag enters

    XMLWordPrintable

Details

    • macOS, Windows
    • 52e0d9e23c3f7a1b0faf6649cf3dd825bcfd4f08

    Description

      Since Qt 5.12, if a widget that accepts drops is not the first widget that is hovered during the drag operation (regardless of the other widgets' acceptDrops property), the drag operation is rejected, although the mime data was successfully received & parsed and event->acceptProposed() was called.

      The problem does not occur on Qt 5.11.3. I've attached a minimal working example as well as two videos demonstrating the issue with Qt 5.12 and 5.11.3.

      I can reproduce the issue on macOS and Windows, I haven't tested Linux.

      Attachments

        1. DragDropIssue.zip
          3 kB
        2. Qt 5.11.3.mov
          9.72 MB
        3. Qt 5.12.mov
          10.00 MB

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              longhanks Andreas Schulz
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes