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

Assignment to a list property emits property change event for every item in the list

    XMLWordPrintable

Details

    Description

      To reproduce, run attached example and click "Replace lists"

      It will output change to the targetList1 property as many times as there are items in the list of items that is assigned, instead of just a single change event when the whole list changes.

      This behavior easily causes performance issues if the property is used with Repeater as it causes items to be recreated as many times as there are items in the list.

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: