Details
-
User Story
-
Resolution: Fixed
-
P1: Critical
-
6.2
-
None
-
-
13
-
Team 1 Foundation_Sprint 46, Team 1 Foundation_Sprint 47, Team 1 Foundation_Sprint 48
Description
Qt6 introduced a possibility to use bindings known in QML with properties in Qt C++
In the course of development there was a blog post https://www.qt.io/blog/property-bindings-in-qt-6 about the underlaying concept and possible approaches.
Later on, the implementation was documented in the new BINDABLE macro in https://doc.qt.io/qt-6/properties.html and as an article https://doc.qt.io/qt-6/bindableproperties.html linked in the docs of https://doc.qt.io/qt-6/qproperty.html#details
As property bindings a natural part of QML as a declarative language, use of property bindings in C++ might be clear to all developers. More over, users who have a significant code base in Qt5, might be searching for a solid prove that the use of bindings would bring tangible benefits which are worth the effort.
The proposal here is to create one or several examples showing this in an hands-on for form. Code samples provided in https://doc.qt.io/qt-6/bindableproperties.html not sufficient here, since they are focused to bring an example "how" to use bindable properties but not "why" to use them. There are two aspects which should be addressed if possible:
- Simpler and more elegant implementation when bindable properties are used
- Performance benefits when bindable properties are used
- Implementing some popular design patterns is simpler with bindable properties
Attachments
For Gerrit Dashboard: QTBUG-97655 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
383391,5 | Add example showing the benefits of using bindable properties | dev | qt/qtbase | Status: MERGED | +2 | 0 |
383392,6 | Document the example showing the benefits of using bindable properties | dev | qt/qtbase | Status: MERGED | +2 | 0 |
384201,2 | Add example showing the benefits of using bindable properties | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
384203,2 | Document the example showing the benefits of using bindable properties | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |