[Panorama Viewer] Add FloatImageViewer inside PanoramaViewer

This commit is contained in:
Landrodie 2021-01-21 15:04:56 +01:00 committed by Fabien Castan
parent 874aff4529
commit a33810f50d

View file

@ -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("", {})
}
}
}
}