-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (22 loc) · 692 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (22 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "mainwindow.h"
#include <QApplication>
#include <QSplashScreen>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPixmap splashMap(":/res/splash.jpg");
QSplashScreen *splash = new QSplashScreen(splashMap,Qt::WindowStaysOnTopHint);
splash->show();
splash->setFont(QFont("Microsoft Yahei UI",12));
splash->showMessage("软件初始化中,请稍后......",Qt::AlignBottom|Qt::AlignLeft);
MainWindow window;
window.initFunction();
window.initRibbon();
window.initToolBar();
window.initDockWidget();
window.initRobot();
window.showMaximized();
splash->finish(&window);
delete splash;
return a.exec();
}