Details
-
Task
-
Resolution: Won't Do
-
P2: Important
-
None
Description
Property bindings are soft, in the sense that they are easily broken
when the property is assigned a different value.
Property aliases on the other hand are hard, and will not be broken
by subsequent assignments. However an alias can only be defined if
the target object exists at the time the owner of the alias is
constructed.
A Binding element can be used to create a hard binding between from
one property to another. However, for the binding to be two-way the
same way that aliases are, two Binding elements needs to be defined, one
binding the two properties in one direction and the other in the other
direction. This however is impractical when creating generic reusable
component, as the generic component won't know about its parent's property.
Thus, support is needed for creating Binding objects that automatically
create a two-way binding between two properties.
Attachments
Issue Links
- duplicates
-
QTBUG-68316 QML needs a TwoWay binding like XAML has, to support Model View ViewModel correctly
- Closed
- relates to
-
QTBUG-77622 Avoid accessing properties as strings
- Open
-
QTBUG-82713 Avoid QQmlCustomParser in Qt code
- Open
-
QTBUG-73892 A way to reference a property from QML
- Closed
- replaces
-
QTBUG-21558 Allow creating two way bindings in QML
- Closed
- resulted in
-
QTBUG-85958 Redesign the Binding element
- Closed