You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
499 B
22 lines
499 B
6 years ago
|
#include <QGuiApplication>
|
||
|
#include <QQmlApplicationEngine>
|
||
|
#include <QQmlContext>
|
||
|
#include "settings.h"
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||
|
|
||
|
QGuiApplication app(argc, argv);
|
||
|
|
||
|
Settings settings;
|
||
|
|
||
|
QQmlApplicationEngine engine;
|
||
|
engine.rootContext()->setContextProperty(QStringLiteral("settings"), &settings);
|
||
|
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
||
|
if (engine.rootObjects().isEmpty())
|
||
|
return -1;
|
||
|
|
||
|
return app.exec();
|
||
|
}
|