启动界面的添加方法


#include "qsplashtest.h"
#include <QtGui/QApplication>
#include <QSplashScreen>
int main(int argc, char *argv[])
{
 QApplication a(argc, argv);
 
 QPixmap pixmap( "D:/splash.jpg");
 QSplashScreen *splash = new QSplashScreen(pixmap);
 splash->show();
 qsplashtest w;
 w.show();
 splash->finish(&w);
 delete splash;
 return a.exec();
}

你可能感兴趣的:(启动界面的添加方法)