Question

I have some QLabels in a QWindow. They might have some space in common. I want to know how can I change label's depth. In default situation the label which defined later is on the previews ones.

Was it helpful?

Solution

You can define an indent for each widget and call raise_ function in sort of their indent.

for label in labels:
    label.raise_()

OTHER TIPS

you should use raise, like : labelname.raise_()

All widgets have methods for this.

widget.stackUnder(another_widget) #relative postition

widget.lower() # send to the bottom
widget.raise_() # send to the top

See documentation on QWidget

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top