-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (26 loc) · 741 Bytes
/
main.cpp
File metadata and controls
30 lines (26 loc) · 741 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
28
29
30
#include "kinectcoordinate.h"
#include <QtWidgets/QApplication>
#include <qsplashscreen.h>
#include <qelapsedtimer.h>
#include <qtextcodec.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap("E:\\KinectCode\\Coordination\\KinectCoordinate\\KinectCoordinate\\Kinectf.jpg"));
splash->setDisabled(true);
Qt::Alignment BottomRight = Qt::AlignBottom | Qt::AlignRight;
splash->showMessage("Setting up the main window......", BottomRight,Qt::white);
splash->show();
QElapsedTimer t;
t.start();
while (t.elapsed()<1500)
{
QCoreApplication::processEvents();
}
KinectCoordinate w;
w.show();
splash->finish(&w);
delete splash;
return a.exec();
}