Quote Originally Posted by kapoorsudhish View Post
Hi,
I am working with QGraphicView, QGraphicScene and QGraphicItem to draw various rectangles on the scene. But once i add the item to the scene, causes the previous QGraphicItem to move, which is not required. Can some one please help me with this as to how can i stop the movement of the existing Items in scene while adding the new item.
Set a fixed size to the scene. If you forget to do it, the scene will expand to hold all items you place in it. If you add a new item, the scene expands and as the scene is centred in the view, other items will seem to "move" (in fact they won't, the scene will move in the view). See QGraphicsScene::setSceneRect()