This commit is contained in:
Tobias Fella
2023-06-13 23:32:57 +02:00
parent 12bb75e5b0
commit 39ee17cfa1
5 changed files with 42 additions and 38 deletions

View File

@@ -34,7 +34,11 @@ Rectangle {
Layout.preferredHeight: parent.height
Layout.preferredWidth: parent.width
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
onActiveChanged: if (active) model.object.initCamera(camera)
onActiveChanged: {
if (active) {
model.object.initCamera(camera)
}
}
Component.onCompleted: if (active) model.object.initCamera(camera)
GstGLVideoItem {
id: camera
@@ -55,7 +59,7 @@ Rectangle {
height: parent.height
Component.onCompleted: {
//model.object.initCamera(this)
model.object.initCamera(this)
}
}
}