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

drop action (and cursor) are not updated when changing modifier without moving the mouse

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.14.2
    • Fix Version/s: 5.15.1, 6.0.0
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Platform/s:
      All

      Description

      Currently you can only call setdropAction() in dragMoveEvent() to change the drag cursor while dragging.
      But you can not do anything to change the dropAction (and the drag cursor) if while dragging you stop moving the mouse and change the modifier key.

      Step to reproduces with the sample code:
      1. dragging the button inside its window.
      2. stop moving the mouse. (this step is very important)
      3. change the modifier key between Shift/Ctrl/...

      • Expected behavior:
        The drag cursor changes automatically or manually like it does if you do the extra step below:
        4. Move the mouse some px.
      • Current behavior:
        No way to change the drag cursor if you don't move the mouse after the step 3.

        Attachments

        1. test_dnd.zip
          4 kB
        2. test-patch.diff
          0.7 kB

          Issue Links

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

            Activity

              People

              Assignee:
              avolkov Alexander Volkov
              Reporter:
              trmdi trmdi trmdi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes