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

macOS: Mouse Up is not delivered correctly after drag and drop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.3.2, 6.5.3, 6.6.1
    • QPA
    • None
    • macOS

    Description

      Observation:

      The mouse up event concluding a drop and drop operation does not contain the originating button id, and leads to undefined behavior in code, which is relying on complete informations about which button was released.

       

      Analysis:

      The root cause is the button id to be hardcoded to Qt::NoButton, see: https://github.com/qt/qtbase/blob/6.6.1/src/plugins/platforms/cocoa/qnsview_dragging.mm#L289

       

      Attached:

      Proposed patch (this is based on 6.5.3, but should be no problem to apply to earlier or later Qt revisions, even if maybe not completely conflict-free)

      EDITED - sorry I had the attachment wrongly labelled as 6.3.2-based, which is corrected now.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            stefan.wastl Stefan Wastl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes