Details
-
Technical task
-
Resolution: Unresolved
-
P2: Important
-
None
-
0aa37f979 (dev)
Description
The same way Connections has a late-bound mode using function declarations of a specific form, Binding should have a late-bound mode using property declarations of a specific form. Instead of the current:
Binding { foo.bar: some + expression }
You'd write:
Binding {
target: foo
property int bar: some + expression
}
If the "property" property is not given, Binding would then automatically synchronize any declared properties with equivalent properties of the target.
An interesting question is how to handle the type here. Does the declaration only match if the type is the same or do we allow coercions? Connections does coerce signal arguments. So that would be an argument for allowing coercion here, too.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-132541 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
615024,2 | WIP: Late-bound mode for Binding | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |
615118,3 | WIP: QQmlBind: Late bound mode | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |