When switching dragmode from RubberBandDrag to ScrollHandDrag while draging is already active in QGraphicsView, the selection is not cleared. Even changing back to RubberBandDrag does not clear the selection, until dragging is started again. Dragging in ScrollHandDrag mode does not clear the selection either.
Steps to reproduce:
- Run attached sample
- Start dragging to select some area of your choice
- While dragging is still going on (mouse button is pressed), click Ctrl button to switch the dragging mode
- EXPECTED: Blue selection area disappears
- ACTUAL: Blue selection area presists
You can change the cursor back with shift button for testing purposes.