In fact, you simply shouldn't. Binding is the basic behavior of QML, if you try to avoid it, it is because you are not thinking of a good way.
For example, if the property two initial values ββis calculated using the property one initial value , but not the property one value ,
Then this means that you want to bind the Initial value to not the value , you must create the readonly property , the value of which will be the property one initial value :
readonly property int initialOne : 1; property int one : initialOne; property int two : 2 * initialOne;
It may seem a little heavy, but if you think about it, the initial value is what you want to use, and therefore the concept of a property is what you really want
Bluemagma
source share