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

qmllint: Warn about missing ListPropertyAssignBehavior

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • Some future release
    • 6.8, 6.9
    • QML: Tooling
    • None

    Description

      The behaviour of list properties in QML can be surprising. If we detect that a non-default list property has a binding set in a base type, and that in a derived type we assign another value to it, we should trigger a warning if no explicit ListPropertyAssignBehavior is set.

      We should not do this for default properties, as this would trigger way too many warnings.

      Compare https://doc.qt.io/qt-6/qtqml-documents-structure.html#listpropertyassignbehavior

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes