Unsolved When are QML property bindings evaluated when the binding is to a function?
-
For example,
Button {
...
enabled: isEnabled()
...function isEnabled() {
return (complex boolean and other function calls)
}
}When does isEnabled get evaluated? What if isEnabled is defined outside of the Button?
-
This post is deleted! -
@Shrinidhi-Upadhyaya said in When are QML property bindings evaluated when the binding is to a function?:
the function will get called only when you invoke them
that is partially incorrect. When the "function" contains properties and the return value is bound to an other property, like the op posted, then that function is reevaluated as soon as any of the properties changes.
Additionally to that it is one time evaluated on the start/creation of the QML-object