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

CLONE - setSelected() in QTreeWidget is very slow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.11.0
    • 4.8.2, 5.7.1
    • Widgets: Itemviews
    • None
    • Windows 7, linux

      Windows 10, MSVC 2013

      If there is lot of data in QTreeWidget, setSelected() to many items is extremely slow. For example selecting 6000 items takes about 21 seconds with following code:

          QTreeWidgetItemIterator it(tree);
          while (*it) {
              (*it)->setSelected(true);
              ++it;
          }
      

      Please find attached an example which reproduces this issue.

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

            chehrlic Christian Ehrlicher
            ars.masiuk Ars Masiuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes