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

Drag and Drop crashes on Mac (Cocoa)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.x
    • 4.6.2
    • GUI: Drag and Drop
    • None
    • Mac OS 10.6.8
    • macOS

      In our application QDragManager::drag crashes at the line [dndParams.theEvent locationInWindow].

      The reason is that dndParams.theEvent is not pointing to a valid NSEvent. We are not calling QDrag::exec inside the actual MouseMove event but once we have processed some further events and it seems the NSEvent for the mouse event has become invalid by then.

      Would it be possible to remove the dependency on the event object from the mouse drag event? This dependency does not seems to be required for Windows or Linux.
      It could also be worth investigating if a RetainEvent will keep the pointer to theEvent alive.

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

            Unassigned Unassigned
            rgraebert Robert Grabert
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes