Re: slicing QGraphicsItem
Quote:
Originally Posted by
hindy.ilan@gmail.com
How can I set the item's boundaries to that of the enlarged QPainterPath
Return it as the item's boundingRect.
Re: slicing QGraphicsItem
I tried to return the bounding rect of the QPainterPath but it returned the bounding rect before the scale
Ilan
Re: slicing QGraphicsItem
The solution was to use QGraphicsPathItem
This item can contain QPainterPath and can be scaled and moved
Ilan
Re: slicing QGraphicsItem
Transforms are external to the item - they take the item (including its bounding rect) and transform that. If you want to scale the path "internal" to the item, you should do that in the item itself (e.g. its paint() routing) and take that into consideration when returning the bounding rectangle.