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

      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.

        1. qtbug112208.zip
          2 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes