Z Order of QWidgets
Unsolved
General and Desktop
-
@hjohn
QWidget::lower() / QWidget::raise() / QWidget::stackUnder() -
@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? -
@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).