[Qt-interest] showing mainwindow
Martin Gebert
martin.gebert at alpha-bit.de
Tue May 12 09:31:02 CEST 2009
> I was wondering if it was possible (and if so, how to do it)
> to display the mainwindow before and after populating it and
> still be able to perform tasks in the __init__ function ...
Should be easy.
1. Construct your mainwindow object. Constructor gets executed, including
setupUi().
2. Call mainwindow.show().
3. Call mainwindow.myInit() or whatever you like to call the function that
populates your widgets.
4. Call mainwindow.exec().
Martin
More information about the Qt-interest-old
mailing list