-
Notifications
You must be signed in to change notification settings - Fork 59
/
main.cpp
43 lines (35 loc) · 1.09 KB
/
main.cpp
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
39
40
41
42
43
#include "mainwindow.h"
#include "HeadPoseDetector.h"
#include <QApplication>
#include <opencv2/opencv.hpp>
#include<QDebug>
#include "FlightAgxSettings.h"
#include <QFontDatabase>
FlightAgxSettings * settings = nullptr;
#ifdef Q_OS_WIN
# ifdef main
# undef main
# endif
#endif
int math_tests();
int main(int argc, char *argv[])
{
// math_tests();
// return 0;
qRegisterMetaType<Pose_>("Pose_");
qRegisterMetaType<Pose6DoF>("Pose6DoF");
qRegisterMetaType<Eigen::Vector3d>("Eigen::Vector3d");
qRegisterMetaType<Matrix19d>("Matrix19d");
qInfo() << "Welcome! pliots";
if (argc > 1 && std::string(argv[1]) == "small") {
} else {
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
}
QApplication a(argc, argv);
QFontDatabase::addApplicationFont( QCoreApplication::applicationDirPath() + "/assets/SourceCodeVariable-Italic.ttf");
QFontDatabase::addApplicationFont( QCoreApplication::applicationDirPath() + "/assets/SourceCodeVariable-Roman.ttf");
settings = new FlightAgxSettings;
MainWindow w;
w.show();
return a.exec();
}