tags:

views:

75

answers:

1

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
@Jerome Thank you man, it really works like magic
prabhakaran