summaryrefslogtreecommitdiffstats
path: root/examples/multimedia
diff options
context:
space:
mode:
authorJakub Wincenciak <jakub@scythe-studio.com>2023-09-25 14:52:34 +0200
committerJakub Wincenciak <jakub@scythe-studio.com>2023-09-26 14:37:30 +0200
commitc62180636cb5636915f06806d6f6f65bad3b582c (patch)
tree4671f138ed022e6236c5d907817b56c1696bd4d8 /examples/multimedia
parent4fafcd6d2c164472ce63d5f09614b7e073c74bea (diff)
Fix bug in QML video example causing camera to not get displayed
The bug was due to undefined property (item.centerIn instead of item.anchors.centerIn). Also added ignoreUnknownSignals property to one of Connections because target property was set to dynamically created object. Task-number: QTBUG-110012 Change-Id: Ic31218a778a3c13efc227b3db6b72ffd6f1abae4 Pick-to: 6.5 6.6 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'examples/multimedia')
-rw-r--r--examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneMulti.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneMulti.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneMulti.qml
index f94f1e4ef..54571b055 100644
--- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneMulti.qml
+++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneMulti.qml
@@ -95,7 +95,7 @@ Scene {
id: cameraLoader
onLoaded: {
item.parent = cameraHolder
- item.centerIn = cameraHolder
+ item.anchors.centerIn = cameraHolder
item.contentType = "camera"
item.showFrameRate = true
item.width = itemWidth
@@ -121,6 +121,7 @@ Scene {
console.log("[qmlvideo] SceneMulti.camera.onError")
cameraHolder.stop()
}
+ ignoreUnknownSignals: true
}
function start() {