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

Can't drag and drop multiple urls because of exception in QDragManager

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.12.4
    • Fix Version/s: None
    • Component/s: GUI: Drag and Drop
    • Environment:
      macOS Catalina 10.15 Beta (19A558d)
    • Platform/s:
      macOS

      Description

      QDragManager fails when dragging more than one url.

      If a drag representing files is initiated that represents more than one draggingItem, the only way to represent this is using QMimeType::setUrls().

      The URL mime type is required to send files to Finder. [Anecdotal: other mime types work fine]. When the drag is executed, cocoa throws an exception, leaving the QDragManager in an indeterminate state.

      I've attached a sample application and a screenshot of the error "QDragManager::drag in possibly invalid state".

      With the release of macos 12.15, it appears that enforcement of "1 draggingItem per pasteboardItem" has started. This was hinted at in 12.14 release notes, https://developer.apple.com/documentation/macos_release_notes/macos_mojave_10_14_release_notes/appkit_release_notes_for_macos_10_14

       

        Attachments

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

          Activity

            People

            Assignee:
            vestbo Tor Arne Vestbø
            Reporter:
            rshirai Russell Shirai
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes