PDA

View Full Version : GraphicsView and RubberBandDrag mode



medved6
26th October 2010, 03:12
Hi All

I want to give user ability to use RubberBandDrag mode in my view only if CTRL button is pressed. So if user releases CTRL button I want RubberBand area dissaper. So as soon as user relase CTRL button I do

setDragMode(QGraphicsView::NoDrag);


It works ok excpet the case then user first relase CTRL button and only after thet relases the mouse. In this case RubberBand area remains on the view.

Is there anything I can do about it ?

Thank you!