File: webcamtest.cpp

package info (click to toggle)
kpipewire 6.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 996 kB
  • sloc: cpp: 6,204; xml: 133; makefile: 5; sh: 1
file content (26 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
    SPDX-FileCopyrightText: 2023 Aleix Pol Gonzalez <aleixpol@kde.org>

    SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/

#include <QCommandLineParser>
#include <QGuiApplication>
#include <QQmlApplicationEngine>

int main(int argc, char **argv)
{
    QGuiApplication app(argc, argv);

    {
        QCommandLineParser parser;
        parser.addHelpOption();
        parser.process(app);

        auto engine = new QQmlApplicationEngine(&app);
        QObject::connect(engine, &QQmlEngine::quit, qGuiApp, &QCoreApplication::quit);
        engine->load(QUrl(QStringLiteral("qrc:/webcamtest.qml")));
    }

    return app.exec();
}