QApplication app(argc, argv ); UISplash splash(0, Qt::SplashScreen); splash.show(); QTime time; time.start(); for(;time.elapsed() < 1000;)qApp->processEvents(); UIMain* mainWin = new UIMain(0, Qt::Window);