How set height of all rows(QTableView)
Solved
General and Desktop
-
Hi.I was searching google for function of QTableView and QStandardItemModel, but can't find one. Seems like exist func only for single setRowHeight, no for all rows in model.
-
@Engelard
What do you mean?setRowHeight()
is the row height for each row to be displayed. How could you have a height for all rows when there could be any number of them, and what would you use it for anyway?@JonB said in How set height of all rows(QTableView):
setRowHeight() is the row height for each row to be displayed.
No, it's only for particular, not for each.
@mpergand said in How set height of all rows(QTableView):
header->setDefaultSectionSize(20); // 20 px height
This.
-