aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmldebugjsserver/qqmldebugjsserver.cpp
blob: b24e4c4445c0b80f378c10afc9edc1e2f3495fbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include <QtGui/qguiapplication.h>
#include <QtQml/qqmlengine.h>
#include <QtQml/qqmlapplicationengine.h>

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    QQmlEngine someWeirdEngine; // add another engine to cause some trouble

    QQmlApplicationEngine engine;
    engine.load(QUrl::fromLocalFile(QLatin1String(argv[argc - 1])));

    return app.exec();
}