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

TableView2 maintains previous content size when model row count changes to zero

    XMLWordPrintable

Details

    • Windows
    • e1cc06972a42e2bae51b027737919445d0e675f7 (qt/qtdeclarative/5.14)

    Description

      When a TableView 2 row count changes from a large size to empty, the tableview does not adjust it's content height, maintaining the previous height. Resulting in an oversized empty table that still visualises scrollbars needlessly.

      I have attached an example with Large, Empty and Small model. Switching between "Large" and "Small" will result in a correctly sized table. Switching between "Large" and "Empty" will result in a tableview which still maintains the size of the "Large" model. 

       

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            baz Seb Horsewell
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes