mathtrainingstuff/sources/main.cpp

20 lines
493 B
C++
Raw Permalink Normal View History

2018-11-22 12:39:09 +01:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
2018-12-19 20:30:50 +01:00
#include "headers/appsettings.h"
2018-11-22 12:39:09 +01:00
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
2018-12-19 20:30:50 +01:00
qmlRegisterType<AppSettings>("com.max.mathtrainingstuff", 1, 0, "AppSettings");
2018-11-22 12:39:09 +01:00
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}