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

QTreeView::isFirstColumnSpanned becomes slow due to O(n) complexity.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.0 Alpha
    • 5.10.0
    • Widgets: Itemviews
    • None

    Description

      The code for QTreeView::isFirstColumnSpanned() performs a linear loop through all view items spanningIndexes to determine if the row has the 'spanning' flag set. This makes expand() and layout() operations very slow on models with many rows.

      Attachments

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

        Activity

          People

            chehrlic Christian Ehrlicher
            antrag Anton Ragnarsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes