Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
6.4.2
-
None
-
70f1732ee (dev), 09587cc89 (6.5), 80723c47a (tqtc/lts-6.2)
Description
This is a feature request about explicit setter that do not break existing bindings. Suppose we have a currentIndex property binding between a SwipeView and a TabBar. As soon as we set the currenIndex manually, this binding will break, and we would have to repair it via:
onMyEvent: { swipeView.currentIndex = newIndex // repair the binding swipeView.currentIndex = Qt.binding(function() { return tabBar.currentIndex } ) }
What about we generate a setter that updates the value without breaking the property binding, like this:
swipeView.setCurrentIndex(newIndex)
Attachments
Issue Links
- relates to
-
QTBUG-21558 Allow creating two way bindings in QML
-
- In Progress
-