Qt 6.11 is out! See what's new in the release
blog
Qgraphicsitem clipping
General and Desktop
3
Posts
2
Posters
3.1k
Views
1
Watching
-
Hi,
I have a graphicsItem (parent) with several children.
i now set the flag "ClipsChildrenToShape" in parent. However, the children aren't clipped at all. When i add an effect (like shadow) to parent, the children are clipped to the shadow boundingrect. can any1 explain to me this behavior?
Thanks
-
Have you overridden the shape() function on the parent QGraphicsItem?
-
i tried both, with overwriting it and without. neither works