/*************************************************************************************************** Copyright (C) 2023 The Qt Company Ltd. SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only ***************************************************************************************************/ #include "qchronometer.h" #include "qlaprecorder.h" #include #include #include int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; QLapRecorder lapRecorder; engine.rootContext()->setContextProperty("laps", &lapRecorder); QChronometer chrono(lapRecorder); engine.rootContext()->setContextProperty("chrono", &chrono); engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); if (engine.rootObjects().isEmpty()) return -1; return app.exec(); }