#include <QSplashScreen>
#include <ctime>
#define sec 3 //控制停留时间时间以秒为单位
QApplication app(argc,argv);
QPixmap pixmap(":/hello.png"); //所需载入的图像
QSplashScreen splash(pixmap);
splash.show();
clock_t delay = sec * CLOCKS_PER_SEC;
clock_t start = clock();
while(clock()-start<delay);
Dialog w ;
splash.finish(&w);
w.show();