Unsolved Z Order of QWidgets
-
How to set Z order of multiple widgets?
[Edit ~aha_1980: fixed typo in title]
-
@hjohn
QWidget::lower() / QWidget::raise() / QWidget::stackUnder() -
@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? -
@hjohn
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).