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

Handle name collisions between required properties, existing properties and model roles

    XMLWordPrintable

Details

    Description

      In 5.15, required properties can be used to explicitly extract model values. However, this currently requires an exact match between required property name and model role.

       

      This can be problematic if the application has a model whose role names cannot be changed, and which collide with existing properties of the QML delegate type (e.g. a  model with a "width" role).

       

      While this was already before required properties, and can be worked around by using model["roleName"] to access the value, it is clearly sub-optimal and we should provide a better way.
       

      Attachments

        For Gerrit Dashboard: QTBUG-79876
        # Subject Branch Project Status CR V

        Activity

          People

            fabiankosmale Fabian Kosmale
            fabiankosmale Fabian Kosmale
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes