-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
24 lines (21 loc) · 694 Bytes
/
Copy pathmain.cpp
File metadata and controls
24 lines (21 loc) · 694 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
#include "menuwindow.h"
#include <QApplication>
#include <QPixmap>
#include <QSplashScreen>
#include <QGraphicsItem>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// TODO:加载动画
qDebug() << getCurrentTime() << "The Game Is Starting." << endl << "Readying For The Initialization."<<endl;
QPixmap loadOpen( ":/gamestarted/loading/res/gamestart/test.png" );
QPixmap set = loadOpen.scaled(800, 800, Qt::KeepAspectRatio);
QSplashScreen splash(set);
splash.show();
a.processEvents();
MenuWindow w;
w.show();
splash.finish(&w);
qDebug() << getCurrentTime() << "The Initialization Has Finished."<<endl;
return a.exec();
}