widget - How to get the Top(base) parentWidget in QT? -


i creating software must accessible parent childrenwidget (or children of children of children....) , children parentwidget (or parent of parent of parent ...).

for example :

qwidget_principal --> widgetapplications --> widgetmenubar --> pushbuttonfullscreen. 

the problem way can this, doing

this->parentwidget()->parentwidget()->parentwidget()->showfullscreen(); 

this there simple way ?

thanks in advance , sorry bad english.

luis da costa

use qwidget * qwidget::window () const window widget widget.

there qwidgetlist qapplication::toplevelwidgets () [static] function, list of top level widgets in app...


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -