File indexing completed on 2024-04-28 05:27:35
0001 /* 0002 SPDX-FileCopyrightText: 2023 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #include <QCommandLineParser> 0008 #include <QGuiApplication> 0009 #include <QQmlApplicationEngine> 0010 0011 int main(int argc, char **argv) 0012 { 0013 QGuiApplication app(argc, argv); 0014 0015 { 0016 QCommandLineParser parser; 0017 parser.addHelpOption(); 0018 parser.process(app); 0019 0020 auto engine = new QQmlApplicationEngine(&app); 0021 QObject::connect(engine, &QQmlEngine::quit, qGuiApp, &QCoreApplication::quit); 0022 engine->load(QUrl(QStringLiteral("qrc:/webcamtest.qml"))); 0023 } 0024 0025 return app.exec(); 0026 }