Here is an easy implementation of Splash screen with an induced delay using QThread.
#include "mainwindow.h"class I : public QThread{public: static void sleep(unsigned long secs) { QThread::sleep(secs); }};int main(int argc, char *argv[]){ QApplication app(argc, argv); QPixmap pixmap("splash.jpg"); QSplashScreen splash(pixmap); splash.show(); MainWindow mainWin; mainWin.setWindowTitle("Application"); I::sleep(5); // splash is shown for 5 seconds mainWin.showMaximized(); splash.finish(&mainWin); return app.exec();}