Blank camera output in qml
-
Hi, im getting no errors here but i dont see any output for the following simple code, the examples in Qt are very convoluted, so i cant really draw any understanding from them...
import QtQuick import QtQuick.Window import QtMultimedia Window { width: 640 height: 480 visible: true title: qsTr("Hello World") MediaDevices { id: mediaDevices } CaptureSession { camera: Camera { cameraDevice: mediaDevices.defaultVideoInput } } Item { width: 640 height: 360 CaptureSession { camera: Camera { id: camera focusMode: Camera.FocusModeAutoNear customFocusPoint: Qt.point(0.2, 0.2) // Focus relative to top-left corner } videoOutput: videoOutput } VideoOutput { id: videoOutput anchors.fill: parent } } }
is there anything thats obviously missing?
-
Hi, im getting no errors here but i dont see any output for the following simple code, the examples in Qt are very convoluted, so i cant really draw any understanding from them...
import QtQuick import QtQuick.Window import QtMultimedia Window { width: 640 height: 480 visible: true title: qsTr("Hello World") MediaDevices { id: mediaDevices } CaptureSession { camera: Camera { cameraDevice: mediaDevices.defaultVideoInput } } Item { width: 640 height: 360 CaptureSession { camera: Camera { id: camera focusMode: Camera.FocusModeAutoNear customFocusPoint: Qt.point(0.2, 0.2) // Focus relative to top-left corner } videoOutput: videoOutput } VideoOutput { id: videoOutput anchors.fill: parent } } }
is there anything thats obviously missing?
