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

CLONE - setSelected() in QTreeWidget is very slow

    XMLWordPrintable

Details

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

      Windows 10, MSVC 2013

    Description

      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.

      Attachments

        For Gerrit Dashboard: QTBUG-60940
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes