Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Z Order of QWidgets
hjohn last edited by aha_1980
How to set Z order of multiple widgets?
[Edit ~aha_1980: fixed typo in title]
QWidget::lower() / QWidget::raise() / QWidget::stackUnder()
hjohn last edited by hjohn
@raven-worx But If new widget create , how to know which widget is having higher Z oder.
Is there anything like Z order in qt?
the last added widget is the topmost.
There is no such z-index property.
But you can check the QObject::children() list and compare the indexes of 2 widgets.
Lower children are stacked behind (if they are QWidgets).