I am trying to put two pictures in the QGraphicsScene as one is fixed, and the other one is movable. But I succeed only in put those pictures in QGraphicsScene, I can't move them. Can anyone tell me how to achieve this.
+3
A:
You have to make sure the item is movable. Have a look at QGraphicsItem::setFlag.
You'll have to do something like this :
myImageItem->setFlag(QGraphicsItem::ItemIsMovable, true);
Jérôme
2010-06-17 14:34:57
@Jerome Thank you man, it really works like magic
prabhakaran
2010-06-17 16:03:58