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

Mouse cursors not restored correcly after a drag operation.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.13.1
    • GUI: Drag and Drop
    • None
    • Windows, VisualStudio 2017
    • Windows

    Description

      After starting a drag operation with QDrag::exec() the mouse cursor does not return to the original one, expecially if dragging along over a lot of differents window and then cancelling the drag operation itself.

      The mouse cursor have to be restored with the following code:

      while (QGuiApplication::overrideCursor())  
         QGuiApplication::restoreOverrideCursor();

      Note: that loop may be executed a lot of times (maximum peak detected is 14).

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            RaR Alessandro Ribolzi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes