-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (21 loc) · 783 Bytes
/
main.cpp
File metadata and controls
27 lines (21 loc) · 783 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
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QFont>
#include <spdlog/spdlog.h>
int main (int argc, char *argv[])
{
spdlog::info("Starting GSC Operations Application...");
QCoreApplication::setOrganizationName("Norco College Rocketry");
QCoreApplication::setOrganizationDomain("github.com/Norco-College-Rocketry");
QCoreApplication::setApplicationName("GSC Operations");
QGuiApplication app (argc, argv);
QFont font("Source Code Pro");
app.setFont(font);
QQmlApplicationEngine engine;
QObject::connect (
&engine, &QQmlApplicationEngine::objectCreationFailed, &app,
[] () { QCoreApplication::exit (-1); }, Qt::QueuedConnection);
engine.loadFromModule ("GSC_Operations", "Main");
return app.exec ();
}