[Qt-interest] showing mainwindow
NARCISO, Rui
RUI.NARCISO at airbus.com
Tue May 12 10:28:54 CEST 2009
could it be done inside the mainwindow constructor ?
-----Message d'origine-----
De : qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com]De la part de Martin Gebert
Envoyé : mardi 12 mai 2009 09:31
À : 'Qt Interest (E-mail)'
Objet : Re: [Qt-interest] showing mainwindow
> 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
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
More information about the Qt-interest-old
mailing list