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

QTreeView bad Performance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.2.1
    • Widgets: Itemviews
    • None
    • Windows

    Description

      When a QTreeView is getting focus
      data is asked for CheckStateRole for all items starting from 0,0 to
      the selected one.

       

      I am having an own model derived from QAbstractItemModel with 60k+ rows and 21 columns. I noticed the application is blocking for several minutes in some rare cases. Found the issue being reproducible by changing focus either to another application or just another widget and then back to the QTreeView. I am not using checkboxes still QTreeView traverses all my items starting from the very first row to the currently selected row reading all columns with the CheckStateRole, which takes minutes if I have selected an item further to the end of the data. Then QTreeView fetches the data using different roles of the items visible, which is fine.

       

      Please, fix the bug or provide a workaround.

      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
            harry Harald
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes