Details
-
Task
-
Resolution: Unresolved
-
P1: Critical
-
None
-
None
Description
Currently, there is no way to create two way cleanly bindings in QML.
Use case: You have a property in C++ and this property is exposed as some UI text input in QML. Changes in C++ need to get reflected in the QML and vice-versa. Currently, one can do:
TextInput {
id: root
text: runtime.cppProperty
Binding {
target: runtime
property: "cppProperty"
value: root.text
}
}
The problem I have with above is that it's not 'clear' that it's two-way binding. It would clearer if we either had a 'twoWay' property in Binding element to start with. OR we create a new Alias element (which is same Binding except it's two way).
Attachments
Issue Links
- is duplicated by
-
QTBUG-132782 Establish requirements for bi-directional bindings
-
- Closed
-
-
QTBUG-30596 bi-directional or multi-sync variation of Binding
-
- Closed
-
- is replaced by
-
QTBUG-19892 Allow "lazy" aliases to properties of objects created only later
-
- Closed
-
- relates to
-
QTBUG-109996 Add explicit property setter functions that do not break bindings
-
- Open
-
-
QTBUG-132420 Better QML API for updating QAbstractItemModel data
-
- Reported
-
- mentioned in
-
Page Loading...
Gerrit Reviews
For Gerrit Dashboard: QTBUG-21558 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
623118,7 | WIP: Prototype of Synchronizer | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |