2016-12-27 94 views

回答

3

我最近创建了这个启动画面,我想你可以使用它。请确保在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())); 
+0

谢谢,它工作正常。 – user7062312

+0

@ user7062312如果它适合您,请您接受答案吗? – demonplus