I code in Python, FYI. I would recommend creating brand new classes that are subclasses of the Scene and Item objects you need. This will allow you to create brand new instances of the objects. Something like this in python looks like:
def __init__(self, parent):
super(MyGraphicsScene, self).__init__()
class MyGraphicsScene(QtGui.QGraphicsScene)
def __init__(self, parent):
super(MyGraphicsScene, self).__init__()
To copy to clipboard, switch view to plain text mode
..and..
def __init__(self, parent):
super(MyGraphicsItem, self).__init__()
class MyGraphicsItem(QtGui.QGraphicsPixmapItem)
def __init__(self, parent):
super(MyGraphicsItem, self).__init__()
To copy to clipboard, switch view to plain text mode
Then the object is itself a class, and an object, GraphicsScene or PixmapItem, allowing you call it, create a second instance of it easly, and even add functions inside it so you can call those.
I know you are not coding in PyQt, but I thought it would help.
Bookmarks