Priority: P1: Critical
Affects Version/s: 5.12.0, 5.13.0
Environment:Windows 10, MSVC 2017, x64
Beginning with Qt 5.12, the binding like typeof (name) will not update when property name was undefined and then became defined as context property. It worked in Qt 5.11 and before.
Consider the following QML code:
Then I define model context property through C++ code, like:
I expect binding to be reevaluated, however it isn't. It is now only updated only if it directly binds to model (without the typeof check).
The text remains model is null instead of changing to model is object.
See the attachment for the full project demonstrating the problem.
This breaks quite a much of my code (preventing upgrade from Qt 5.11), as I was using the typeof frequently to avoid ReferenceError.
Please let me know, if any further information is needed.
|For Gerrit Dashboard: QTBUG-76796|
|266776,2||Fix bindings not being re-evaluated when changing context property||5.12||qt/qtdeclarative||Status: MERGED||+2||0|