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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.15.1, 6.0.0
    • 5.14.2
    • GUI: Drag and Drop
    • None
    • All

      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.

        1. test_dnd.zip
          4 kB
        2. test-patch.diff
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes