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

Deleting lots of QTreeWidgetItems is extremely slow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.12.12, 6.7.2
    • None
    • Windows

    Description

      Removing a large number of items from a QTreeWidget seems to be extremely slow. In a tree with three levels and about 100,000 leaf nodes, removing a large number of the leaf items in one go takes several minutes. Nothing I tried makes a difference: turning off updates with setUpdatesEnabled(false), sorting the items in reverse order of their place in the tree before carrying out the removal, removeChild instead of just deleting each QTreeWidgetItem, takeChild instead of removeChild... nothing seems to work.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nirslsk Nir Arbel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes