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

setItem will re-construct the delegate

XMLWordPrintable

      please check the attached sample.

      the model data is filled in TestItemModel::createList, when the second row is created it will reset all delegates. 

      I understand if using QStandardItemModel like list should use appendRow rather than setItem

      but why does setItem cause all delegates to reset? is this the expected behaviour?

      call stack

        1. image-2024-09-19-14-34-34-689.png
          86 kB
          shanheng jiu
        2. ItemModelSample.zip
          3 kB
          shanheng jiu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes