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

    • User Story
    • Resolution: Fixed
    • P1: Critical
    • 6.2.3, 6.3
    • 6.2
    • Core: Object Model
    • None
    • All
    • 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

        Activity

          People

            sonakur Sona Kurazyan
            vminenko Vladimir Minenko
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews