[Qt-interest] showing mainwindow
Uwe Drechsel
vym at InSilmaril.de
Wed May 13 16:34:30 CEST 2009
On Mon, May 11, NARCISO, Rui wrote:
>
> Hi all
>
> I have a class inherited from QMainWindow that contains a QTreeWidget as central widget.
>
> When I create my main window I populate this qtreewidget.
>
> 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 ...
>
> The behavior I'm having is that until all has been done in the class constructor, nothing is displayed ..
>
Hm I wanted to watch my window being populated after startup:
m.show();
m.fileNew();
// Paint Mainwindow first time
qApp->processEvents();
// populate window with data specified on commandline
m.loadCmdLine();
Though that's not exactly in the init function.
Uwe
--
355/113 -- Not the famous irrational number PI, but an incredible simulation!"
More information about the Qt-interest-old
mailing list