Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication app(argc, argv);
  4.  
  5. splash->setPixmap(QPixmap(":/images/splash.png"));
  6. splash->show();
  7.  
  8. MyApp mainwindow;
  9.  
  10. QTimer::singleShot(2500, splash, SLOT(close()));
  11. QTimer::singleShot(2500, &mainwindow, SLOT(show()));
  12.  
  13. return app.exec();
  14. }
To copy to clipboard, switch view to plain text mode