mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 18:31:58 +02:00
[Panorama Viewer] Add FloatImageViewer inside PanoramaViewer
This commit is contained in:
parent
874aff4529
commit
a33810f50d
1 changed files with 17 additions and 0 deletions
|
@ -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("", {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue