Hi
I have a QTableView and would like it to auto-resize the row height when I increase or decrease the widget size.
I have this working for the columns with the following code(ui->tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch)). This works perfectly, both increasing and decreasing as the widget size increases and decreases.
However, the following code for the verticalHeader does not decrease the row height as I decrease the widget height.
ui->tableView->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch))
Any idea how to get this working?
Bookmarks