aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/qml/testprojects/cppmockup/main.cpp
blob: 544f3876145dc242e962060e4fc7dcb43c5e3260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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

#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();
}