Hi,
I have a QGraphicsScene containing many custom QGraphicsItem.
All the QGraphicsItems are movable. When I move the QGraphicsItem towards any edge of the QGraphicsScene the scene automatically expands.
My problem is that I want to have some offset ( a kind of border ) between the scene and the graphics item, so that when I move the item to the edge of the scene the scene should expand with the offset in place.
I tried using QGraphicsScene::setSceneRect(), but using this method freezes the size of the scene, so the scene doesnt expand automatically on graphics item move.
Any pointers would be helpful.
Bookmarks