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

expand/collapse of TreeView will recreate all delegates.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.1
    • Quick: Other
    • None
    • archlinux + kde

      as title, if setting reuseItems as false,
      when expanding a node, TreeView should insert new items, and only create delegates for new items, but the truth is:
      TreeView destruct all items, and then recreate all of them, I don't know if it is design or bug.

      if design, what is the reason?

      I think the reuseItems is for recycle of items moved out of screen or deleted nodes, is it?

      in attached project, expand or collapse a node, it will print create/destruct info.

        1. Screenshot_20250820_175839.png
          13 kB
          niqingliang2003
        2. treeview_test.tar.gz
          4 kB
          niqingliang2003
        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
            niqingliang2003 niqingliang2003
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes