0
我想为我的Qt应用程序创建一个简单的启动画面。我正在学习如何创建Qt应用程序并且知之甚少。任何帮助将非常感激!如何在Qt上创建启动画面?
我想为我的Qt应用程序创建一个简单的启动画面。我正在学习如何创建Qt应用程序并且知之甚少。任何帮助将非常感激!如何在Qt上创建启动画面?
我最近创建了这个启动画面,我想你可以使用它。请确保在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()));
谢谢,它工作正常。 – user7062312
@ user7062312如果它适合您,请您接受答案吗? – demonplus