#include <QApplication>
#include <QSplashScreen>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplashScreen *splash =new QSplashScreen;
splash->setPixmap(QPixmap(":/images/begin.png"));
splash->show();
MainWindow mainWin;
mainWin.show();
splash->finish(&mainWin);
delete splash;
return app.exec();
}
这是启动程序的时候添加程序启动画面的 什么问题啊?
但是编译不出错 不显示启动画面啊 ??
是不是splash->show();完以后加延时啊 ?已经在资源文件中载入图像了
怎么加延时 ??