24 lines
537 B
C++
24 lines
537 B
C++
#include <QGuiApplication>
|
|
#include <QQmlApplicationEngine>
|
|
|
|
#include "matrix/controller.h"
|
|
using namespace QMatrixClient;
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
#if defined(Q_OS_WIN)
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
#endif
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
qmlRegisterType<Controller>("Matrique", 0, 1, "Controller");
|
|
|
|
QQmlApplicationEngine engine;
|
|
engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
|
|
if (engine.rootObjects().isEmpty())
|
|
return -1;
|
|
|
|
return app.exec();
|
|
}
|