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.

20 lines
436 B

10 months ago
#include <QGuiApplication>
#include <QQmlApplicationEngine>
10 months ago
#include <QQmlContext>
#include "app.h"
10 months ago
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
10 months ago
engine.load("qrc:/main.qml");
App appy;
appy.setEngine(&engine);
engine.rootContext()->setContextProperty("app",&appy);
10 months ago
return app.exec();
}