PDA

View Full Version : Binding and onCompleted signal



mut
1st April 2016, 22:46
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

anda_skoa
2nd April 2016, 11:52
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,
_

mut
4th April 2016, 22:19
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?

anda_skoa
5th April 2016, 09:38
There is no such global signal, each property's binding is handled individually.

Cheers,
_