This repository has been archived on 2024-06-03. You can view files and clone it, but cannot push or open issues or pull requests.
app/main.cpp

17 lines
375 B
C++
Raw Normal View History

2018-07-17 19:17:25 +02:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}