Binding and onCompleted signal
Hello
For the qml components supporting the Component.onCompleted slot. Can I assume that all the binded properties are correct (binding has occurred) when this slot is called?
When does biding is resolved?
I guess my question is when one can be sure that all biding has been resolved? is there a signal for that?
Thanks;
Mut
Re: Binding and onCompleted signal
No, I don't think that all bindings have necessarily been evaluated by the time the onCompleted handler is called.
But each property has an associated changed signal, so you can react to the initial or any further value change.
Usually the elements themselves can easily deal with value changes over time.
Cheers,
_
Re: Binding and onCompleted signal
Thanks you for the reply. But my QML component has a lots lots of properties (from its subcomponent). I cannot monitor all of them. Is there a global signal that I can use?
Re: Binding and onCompleted signal
There is no such global signal, each property's binding is handled individually.
Cheers,
_