-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (32 loc) · 1.06 KB
/
Copy pathmain.cpp
File metadata and controls
43 lines (32 loc) · 1.06 KB
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
28
29
30
31
32
33
34
35
36
37
38
#include<QApplication>
#include <QDebug>
#include <QDateTime>
#include <QSplashScreen>
#include <QTextCodec>
#include <QStyleFactory>
#include "MainWindow/MainWindowInitializer.h"
#include <QtCharts/QChartView>
#include "graphShow/ChartItem.h"
#include <QLineSeries>
#include "GraphicsDataArrayNode.h"
#include <TableView/TableView.h>
void LoadImage(){
/*程序进入前的开场动画效果*/
QPixmap lodingPix(":/img/img/ChartScript-banner-small.png");
QSplashScreen splash(lodingPix);
splash.show();
// splash.showMessage("程序正在加载......", Qt::AlignTop|Qt::AlignRight, Qt::red);
QDateTime time = QDateTime::currentDateTime();
QDateTime currentTime = QDateTime::currentDateTime(); //记录当前时间
while (time.secsTo(currentTime) <= 3) //3为需要延时的秒数
{
currentTime = QDateTime::currentDateTime();
};
}
using namespace QtCharts;
int main(int argc,char*argv[]){
QApplication app(argc,argv);
LoadImage();
MainWindowInitializer::getInstance()->init();
app.exec();
}