From a33810f50d40267aabc1237ea97c82b8e97987d3 Mon Sep 17 00:00:00 2001 From: Landrodie Date: Thu, 21 Jan 2021 15:04:56 +0100 Subject: [PATCH] [Panorama Viewer] Add FloatImageViewer inside PanoramaViewer --- meshroom/ui/qml/Viewer/PanoramaViewer.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/meshroom/ui/qml/Viewer/PanoramaViewer.qml b/meshroom/ui/qml/Viewer/PanoramaViewer.qml index 709f8a37..b06ddc96 100644 --- a/meshroom/ui/qml/Viewer/PanoramaViewer.qml +++ b/meshroom/ui/qml/Viewer/PanoramaViewer.qml @@ -44,4 +44,21 @@ AliceVision.PanoramaViewer { acceptedButtons: Qt.NoButton } + Loader { + id: floatOneLoader + active: root.status + visible: (floatOneLoader.status === Loader.Ready) + anchors.centerIn: parent + onActiveChanged: { + if(active) { + setSource("FloatImage.qml", { + 'source': Qt.binding(function() { return root.source; }), + }) + } else { + // Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14 + setSource("", {}) + } + } + } + }