mathtrainingstuff/sources/main.cpp
2018-12-19 20:30:50 +01:00

19 lines
493 B
C++

#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "headers/appsettings.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
qmlRegisterType<AppSettings>("com.max.mathtrainingstuff", 1, 0, "AppSettings");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}