int main(int argc, char *argv[])
{
splash
->setPixmap
(QPixmap(":/images/splash.png"));
splash->show();
MyApp mainwindow;
QTimer::singleShot(2500, splash,
SLOT(close
()));
QTimer::singleShot(2500,
&mainwindow,
SLOT(show
()));
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();
MyApp mainwindow;
QTimer::singleShot(2500, splash, SLOT(close()));
QTimer::singleShot(2500, &mainwindow, SLOT(show()));
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks