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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -