Thank you wysota for the explanation.
I still have a question. If I have several rectangles on a scene, how would I save the locations and be able to recreate them again? The boundingRect() doesn't seem to change when the items are moved around the scene. Thanks.
Bookmarks