我最近创建了这个启动画面,我想你可以使用它.确保在main.cpp中添加它
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap("/PATH/splash.jpg")); // splash picture
splash->show();
MainWindow w;
QTimer::singleShot(2500, splash,SLOT(close())); // Timer
QTimer::singleShot(2500,&w,SLOT(show()));
Run Code Online (Sandbox Code Playgroud)