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

TableView does unnecessary re-use of existing items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4: Low P4: Low
    • None
    • 6.8.3
    • Quick: Controls 2
    • None
    • macOS, Windows

      I'm using `Qt-6.8.3/quickcontrols/tableofcontents/` as the base for this test. I added a counter to the `delegate` and I increase the counter on a right mouse click on the arrow button, and I display that counter on the items.

      I would expect that when I expand the top item, the counter stays the same since the expanded items are only being added to indices 1 and 2. However, it seems like all the items in the view are taken out of the loaded items and reused again, and not in the same order so the first item ends up being used in another place.

      Is this the expected behaviour? I would assume that only the section of the view that changed would be affected, not the entire view.

        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
            uzumcuf Furkan Uzumcu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes