netGoDialog->runProfileLabel->setText("hoho");
When you do this, is the Dialog created, even if not yet shown or not?
If not, the dialog has to be instanciated, so the widgets are created.
|
Source code
|
1
2
3
|
NetGoDialog * netGoDialog = new NetGoDialog( this, "NetGoDialog", TRUE ) ;
netGoDialog->runProfileLabel->setText("hoho");
netGoDialog->exec() ;
|
If the dialog is already on screen when you want to interfere with it, the simplest is:
|
Source code
|
1
|
QWidgetList * qApp->topLevelWidgets() ;
|
Then you iterate in the list to find your dialog, and bingo !