启动界面的添加方法

来源:互联网 发布:小乃海苔便当知乎 编辑:程序博客网 时间:2024/05/16 06:19

#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();
}
0 0
原创粉丝点击