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

setSelected() in QTreeWidget is very slow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.2
    • Widgets: Itemviews
    • None
    • Windows 7, linux

    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

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

        Activity

          People

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes