I am using both QTableWidget and QTableView Classes.

Now these widgets take much more space in height than a listview with the same data. Now I want to minimize the row height for all rows to the minimum possible value.

I have seen the function
Qt Code:
  1. void setRowHeight ( int row, int height )
To copy to clipboard, switch view to plain text mode 
but that has to be applied to all rows and is not available in QTableWidget.

Any hints appreciated.

Matthias