16,175
社区成员
发帖
与我相关
我的任务
分享
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSplashScreen splash(QPixmap(":/skin/default/splash.gif"));
QLabel lbl(&splash);
QMovie mv(":/skin/default/splash.gif");
lbl.setMovie (&mv);
mv.start ();
splash.show ();
qss_test w;
w.show();
//splash.finish(&w);
return a.exec();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSplashScreen splash(QPixmap(":/skin/default/splash.gif"));
QLabel lbl(&splash);
QMovie mv(":/skin/default/splash.gif");
lbl.setMovie (&mv);
mv.start ();
splash.show ();
a.processEvents();
qss_test w;
QDateTime pre = QDateTime::currentDateTime();
QDateTime now;
do
{
now = QDateTime::currentDateTime();
} while (pre.secsTo(now) <= 5);//5为需要延时的秒数
w.show();
splash.finish(&w);
return a.exec();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSplashScreen splash(QPixmap(":/skin/default/splash.gif"));
QLabel lbl(&splash);
QMovie mv(":/skin/default/splash.gif");
lbl.setMovie (&mv);
mv.start ();
splash.show ();
a.processEvents();
qss_test w;
w.show();
splash.finish(&w);
return a.exec();
}