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 }

 

posted @ 2014-03-08 12:17  自由出土文物  阅读(234)  评论(0编辑  收藏  举报