2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2016-10-25 15:18:13 +02:00
|
|
|
|
|
|
|
|
#include <mybackendobject.h>
|
|
|
|
|
|
|
|
|
|
#include <QGuiApplication>
|
|
|
|
|
#include <QtQml>
|
|
|
|
|
#include <QQmlApplicationEngine>
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
|
|
|
|
|
QQmlApplicationEngine engine;
|
|
|
|
|
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
|
|
|
|
|
|
|
|
|
qmlRegisterType<MyBackendObject>("MyPlugin", 1, 0, "MyObject");
|
|
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|