I’m trying to overlap two QLabels. One qlabel contains an image, while the other one draws a rectangle when I tell it to. Both work individually, but I need to overlap the rectangle QLabel on top of the image QLabel. In QMainWindow I only have one option: to setCentralWidget. How would I do this?
Share
If you want two overlapping labels, you do not add them to a layout but position them directly within their parent window.
something like this: