Thanks for the prompt feedback. Are you referring to the following example?
int main(int argc, char *argv[])
{
splash
->setPixmap
(QPixmap(":/images/splash.png"));
splash->show();
Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
splash
->showMessage
(QObject::tr("Setting up the main window..."),
topRight, Qt::white);
MainWindow mainWin;
splash
->showMessage
(QObject::tr("Loading modules..."),
topRight, Qt::white);
loadModules();
splash
->showMessage
(QObject::tr("Establishing connections..."),
topRight, Qt::white);
establishConnections();
mainWin.show();
splash->finish(&mainWin);
delete splash;
return app.exec();
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap(":/images/splash.png"));
splash->show();
Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
splash->showMessage(QObject::tr("Setting up the main window..."),
topRight, Qt::white);
MainWindow mainWin;
splash->showMessage(QObject::tr("Loading modules..."),
topRight, Qt::white);
loadModules();
splash->showMessage(QObject::tr("Establishing connections..."),
topRight, Qt::white);
establishConnections();
mainWin.show();
splash->finish(&mainWin);
delete splash;
return app.exec();
}
To copy to clipboard, switch view to plain text mode
However, in my case, the corresponding loadModules() and establishConnections() functions are part of the constructor of the mainWin. Any hints?
Thanks again.
Bookmarks