-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
27 lines (23 loc) · 870 Bytes
/
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
#include <QApplication>
#include <QCommandLineParser>
#include "mainwindow.h"
#include "robotcommanderconfig.h"
int main(int argc, char *argv[]) {
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
QApplication app(argc, argv);
QApplication::setOrganizationName("XJTU_Robocon");
QApplication::setApplicationName("RobotCommander");
QApplication::setApplicationVersion(ROBOTCOMMANDER_VERSION);
QCommandLineParser parser;
parser.setApplicationDescription(
QApplication::tr("Robot Controlling and Debugging Tool version %1").arg(ROBOTCOMMANDER_VERSION));
parser.addHelpOption();
parser.addVersionOption();
parser.process(app);
MainWindow mw;
mw.show();
return QApplication::exec();
}