Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
4#include <QGuiApplication>
5#include <QQmlApplicationEngine>
6
7int main(int argc, char *argv[])
8{
9 QGuiApplication app(argc, argv);
10
12 engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
13
14 return app.exec();
15}
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
\macro qGuiApp
QQmlApplicationEngine provides a convenient way to load an application from a single QML file.
\inmodule QtCore
Definition qurl.h:94
int main()
[0]
#define QStringLiteral(str)
QApplication app(argc, argv)
[0]
QJSEngine engine
[0]