Set height of QTableView to fit exact number of rows.

Printable View