[Development] How to skip write property in qml's property binding?

Ulf Hermann ulf.hermann at qt.io
Wed Aug 7 12:47:16 CEST 2024


> Thank you Mike, My answer is "what it last was before fooObject went 
> null", and I was use it in my project.

That's conceptually not a binding. A binding is something that updates 
whenever any of its depedencies updates. It's value is calculated from 
its dependencies. In your case, however, as soon as the null appears, 
the value of the binding is not determined by the dependencies anymore. 
Rather it is determined by the _previous_, now lost, value of fooObject.

best regards,
Ulf


More information about the Development mailing list