2024-01-11 08:33:57 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
|
|
|
|
#include <QGuiApplication>
|
|
|
|
#include <QQmlApplicationEngine>
|
|
|
|
|
2024-09-19 07:40:36 +00:00
|
|
|
using namespace Qt::StringLiterals;
|
2024-01-11 08:33:57 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
|
|
|
QQmlApplicationEngine engine;
|
2024-09-19 07:40:36 +00:00
|
|
|
engine.load(QUrl("qrc:/Main.qml"_L1));
|
2024-01-11 08:33:57 +00:00
|
|
|
if (engine.rootObjects().isEmpty())
|
|
|
|
return -1;
|
|
|
|
|
2024-09-19 07:40:36 +00:00
|
|
|
return QCoreApplication::exec();
|
2024-01-11 08:33:57 +00:00
|
|
|
}
|