PDA

View Full Version : RubberbandDrag doesn't seen



zgulser
11th September 2009, 10:14
Hi,

When I attept to rubberband( by setDragMode(QGraphicsView::RubberBandDrag) ) on my scene, it doesn't seen if any items exist on the scene. But if I remove the items on the scene, rubberband seems to work fine. What could be the problem? boundingRect() maybe?

yogeshgokul
11th September 2009, 10:32
Please try setting this property:

QGraphicsView::setInteractive(true);

zgulser
11th September 2009, 14:03
Hi

I fixed the problem by customizing rubberband. Now I want to ask another question.

My items in the scene looks odd locations when I perform zoom in or out with rubberband. What's the problem here?