I have a use case where depending on the presence or absence of a property value an object referencing it is either created or removed. I am using a Loader for
You can also use Connections to connect to the Loader's onActiveChanged-event and break the binding there:
Loader {
id: ld
active: false
sourceComponent: Text {
text: object.subObject.i
font.pointSize: 20
Connections {
target: ld
onActiveChanged: {
if (active) return
text = text // This will overwrite the binding by the last value of the property itself.
}
}
}
}