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

QML MouseArea resumes dragging after external drag is finished.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.0
    • Fix Version/s: None
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Environment:
      XCB
    • Commits:
      ab2cf73440e5fbda9e2a3ba15dc1df7895c49679

      Description

      I found this while investigating QTBUG-49876: when an external (inter-process) drag which was started from a QML MouseArea finishes, the MouseArea doesn't get the mouse release event and thinks that the drag is still active. The target item is being dragged around, even though no mouse buttons are pressed anylonger.

      I don't know why, but for some reason the QSimpleDrag::eventFilter() method is being called with the source object parameter set to the QShapedPixmapWindow, and forwarding the mouse release event to this window won't have any effect.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              mardy Alberto Mardegan
              Reporter:
              mardy Alberto Mardegan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes