Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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