#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QQmlContext>

int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);

    // Default, Fusion, Imagine, Material, Universal
    QQuickStyle::setStyle("Default");

    QQmlApplicationEngine engine;
    engine.rootContext()->setContextProperty("styleName", QQuickStyle::name());
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
    if (engine.rootObjects().isEmpty())
        return -1;

    return app.exec();
}
