qt下用启动图

1 void showSplash(void)
2 {
3     QSplashScreen*splash=newQSplashScreen;
4     splash->setPixmap(QPixmap(":/img/aa.png"));
5     splash->show();
6     splash->showMessage(QObject::tr("loading..."),Qt::AlignHCenter|Qt::AlignVCenter,Qt::white);splash->finish(&w);
7     delete splash;
8 }
原文地址:https://www.cnblogs.com/ziyouchutuwenwu/p/3587742.html