For some reason QGraphicsItemGroup doesn't inherit from QObject. It creates special handling for this class objects, when making these objects scriptable and has become a nuisance for me . I would like to subclass QGraphicsItemGroup so that it inherits from QObject and QGraphicsItemGroup. However that is easier said than done when looking at the implementation of QGraphicsObject ;( .
So I have two ways
1. Subclass QGraphicsItemGroup to inherit from QObject and QGraphicsItemGroup and re-implement along the lines as is done in QGrapicsObject
2. Forget about QGraphicsItemGroup, Subclass from QGraphicsObject and re-implement all the functionality of QGraphicsItemGroup so that the class behaves like QGraphicsItemGroup but is also a Qobject.
Which is the easier way. And how do I go ahead about it?
Bookmarks