Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How set height of all rows(QTableView)
Engelard last edited by Engelard
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.
JonB last edited by
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?
mpergand last edited by
For the vertical header, call setDefaultSectionSize()
QHeaderView* header=tableView->verticalHeader(); header->setDefaultSectionSize(20); // 20 px height header->sectionResizeMode(QHeaderView::Fixed);
Engelard last edited by
setRowHeight() is the row height for each row to be displayed.
No, it's only for particular, not for each.
header->setDefaultSectionSize(20); // 20 px height