From c62180636cb5636915f06806d6f6f65bad3b582c Mon Sep 17 00:00:00 2001 From: Jakub Wincenciak Date: Mon, 25 Sep 2023 14:52:34 +0200 Subject: 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 --- examples/multimedia/video/qmlvideo/qml/qmlvideo/SceneMulti.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/multimedia') 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() { -- cgit v1.2.3