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

QML MouseArea resumes dragging after external drag is finished.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 5.6.0
    • GUI: Drag and Drop
    • None
    • XCB
    • ab2cf73440e5fbda9e2a3ba15dc1df7895c49679

      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.

        1. externaldrag.qml
          3 kB
          Alberto Mardegan
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes