I've a custom QGraphicsItem
which draws nothing but is parent to other QGraphicsItems
(like QGraphicsRectItem
and so on). My top-level item has (0,0)
somewhere "inside" the children Items. This is very inconvenient. I would like to shift the origin to the upper left corner of childrenBoundingRect()
.
In the picture I've (0,0)
of my top-level item somewhere inside of my children items (solid arrow). I would like to shift the origin to the dashed lines. How can I do that?
As result I expect that positioning of the top-level item will be more convenient.