Qt 6.11 is out! See what's new in the release
blog
How to hide child items when resizing custom QGraphicsItem
-
I have custom QGraphicsItem which contain other QGraphicsItems. When I resizing parent item I want to hide remaining parts which are not inside in my custom item rectangle.
https://imagebin.ca/v/3MnHgq6ldGCM (image example of my custom item ) full project code is in github https://github.com/tigran1984/Qt_example -
I have custom QGraphicsItem which contain other QGraphicsItems. When I resizing parent item I want to hide remaining parts which are not inside in my custom item rectangle.
https://imagebin.ca/v/3MnHgq6ldGCM (image example of my custom item ) full project code is in github https://github.com/tigran1984/Qt_example@Tigran84
TrysetFlag(QGraphicsItem::ItemClipsChildrenToShape, true); -
@Tigran84
TrysetFlag(QGraphicsItem::ItemClipsChildrenToShape, true);@Asperamanca thanks a lot