diff options
Diffstat (limited to 'tests/manual/qml-minimal-camera/qml-minimal-camera.qml')
-rw-r--r-- | tests/manual/qml-minimal-camera/qml-minimal-camera.qml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/manual/qml-minimal-camera/qml-minimal-camera.qml b/tests/manual/qml-minimal-camera/qml-minimal-camera.qml new file mode 100644 index 000000000..3965c663e --- /dev/null +++ b/tests/manual/qml-minimal-camera/qml-minimal-camera.qml @@ -0,0 +1,34 @@ +// Copyright (C) 2024 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +import QtQuick +import QtQuick.Controls +import QtMultimedia + +ApplicationWindow { + id: window + width: 800 + height: 600 + visible: true + title: qsTr("QmlMinimalCamera") + + MediaDevices { + id: mediaDevices + } + + CaptureSession { + id: captureSession + videoOutput: output + camera: Camera { + id: camera + cameraDevice: mediaDevices.defaultVideoInput + } + + Component.onCompleted: camera.start() + } + + VideoOutput { + id: output + visible: true + } +} |