hmm.... this is more complicated it seems.
The setRect() was needed because it was a QGraphicsRectItem subclass.
But QGraphicsItem subclasses, or for example QGraphicsPathItem do not have the setRect() method.
And with these items I am back to my problem....
Ideas?
EDIT: I figured it out - following the analogy of the QGraphicsRectItem, then for QGraphicsPathItem setPath() must be called, or setXxxx() depending on the subclass specialisation.
This bit should be added to the docs I think...
Bookmarks