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

CLONE -QTreeWidget: setResizeMode(QHeaderView::ResizeToContents) unacceptably slow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 4.5.1
    • Widgets: Itemviews
    • None
    • 03c761287f1a007c7177d90ed81341d0147eae05 7e6fbb9af15066a098b22017652d8256c8245b8b adaa50e37da1fddada874a289792a1bd95c5aebc

    Description

      Steps to reproduce / test case:

      When setResizeMode(QHeaderView::ResizeToContents) is selected in QTreeWidget, all operations become unacceptably slow.

      Please compare the following results:

      With:
      setColumnWidth( 0, 10240 );
      setResizeMode(QHeaderView::Stretch);
      my application takes ~200 miliseconds to create and render a large view with ~1000 items.

      With
      setResizeMode(QHeaderView::ResizeToContents)
      the same takes over 6 seconds.

      I.e. with ResizeToContents 30-times more CPU time is needed to create the same view.

      Attachments

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

        Activity

          People

            tmartsum Thorbjørn Lund Martsum
            zeraler ZeRaler
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes