I'm experimenting with the QT library and QGraphicsScene. I can add my own objects to the scene and all that is fine. What I would like to have now are some lists outside QGraphicsScene of the objects. Let's say Squares, Circles and Triangles. They all live in the scene, and are (if I'm correct) copied and owned by the scene when I add them.
The question is: what kind of list template containers would be best for implementing my outside lists.
I guess they would need to be pointers so I figured boost::ptr_container. I know I would need a system to make sure the lists are in sync with the scene once I start deleting items. that means removing the pointer form the lists just before removing the object from the scene.
Any ideas on how i should build this system would be very nice.