Important: Please read the Qt Code of Conduct -

How to get a rectangle's child to draw on top of another sibling rectangle?

  • I have objects and since I have not set clip, they all have clip as false. When one object spawns a child item, it cannot draw over its parents siblings in the scene, but I'd like it to. I tried adjusting the Z on the child to a higher number, but this doesn't help. I currently have no z values on anything. Is there a way to force a child of a rectangle to overlap any other items in the scene it might share space with?

  • There might be a way to do that but the only way i know is by modifying the z-achsis.

Log in to reply