Details
-
Sub-task
-
Resolution: Done
-
P1: Critical
-
None
-
f31d94f2d4438106558dede0de1a423cade960a9
Description
If you write QML such as
property bool bar: false property string text: bar ? "hello" : "world"
,
the variable "text" will be evaluated as a binding. However, it is not allowed to type a multiline binding in a block, such as
property string text: { return bar ? "hello" : "world" }
Because bindings are allowed for QML properties, this limitation seems artificial and only dependent on the syntax of QML. If possible, it would be great to have it removed to make the language more consistent.