Unsolved Is there a way to set row height for every row in a QTableView?
-
QTableView has a method for setting the height of individual rows, but is there a way to set the row height for the entire table?
-
Hi,
I think you can use QHeaderView::setDefaultSectionSize.
Take note of the warning in the documentation.
-
For mode
QHeaderView::ResizeToContents
you can subclassQStyledItemDelegate
, reimplementsizeHint
and return the hight you want.