First of all concerning your composite item's ::boudingRect(), you really should "think about it"
My guess is to merge every child item's bounding rect.
To ensure you computed the right boundingRect, add this code in your CompositeItem:
aint() :
painter->save() ;
painter->setPen(Qt::yellow) ;
painter->setBrush(Qt::NoBrush) ;
painter->drawRect(boundinRect()) ;
painter->restore() ;
painter->save() ;
painter->setPen(Qt::yellow) ;
painter->setBrush(Qt::NoBrush) ;
painter->drawRect(boundinRect()) ;
painter->restore() ;
To copy to clipboard, switch view to plain text mode
And try to right-click on your composite item, maybe it will suffice (didn't try so I'm not sure)
Bookmarks