Qgraphicsitem clipping



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.