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

QTableWidget: high CPU usage when resizing vertically and horizontally where a row is shown/hidden that has an item that is wider than the items that precede it

    XMLWordPrintable

Details

    Description

      To reproduce this, use the attached example and first resize the widget so that only the first two rows are visible. The problem manifests after the widget has been resized vertically or horizontally a few times so that the scrollers appear/disappear and there is a transition between the first two rows being visible and the third row becoming visible. It took several minutes when I tested this but eventually there is at first a discernable delay between the state where only two rows are shown and the third row is shown. The widget appears to freeze. If you continue resizing, eventually the widget locks the system up and it takes about 10-15 seconds to recover.

      The second part of the problem is that the bottom row is hidden by the horizontal scroll bar momentarily when transitioning between the two states - i.e. two rows/three rows visible. Note that the item in column 1, row 3 needs to be wider than the other items so that the horizontal scroller appears/disappears when resizing vertically.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            cattell Matthew Cattell (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes