Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97655

As a user I want to see more examples showing benefits of bindable properties

    XMLWordPrintable

    Details

    • Type: User Story
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.2
    • Fix Version/s: 6.2.3, 6.3
    • Component/s: Core: Object Model
    • Labels:
      None
    • Platform/s:
      All
    • Story Points:
      13
    • Sprint:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sonakur Sona Kurazyan
            Reporter:
            vminenko Vladimir Minenko
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews