From this screenshot you can see a lot of space inside the rows:
I've used these functions to get resizing:
resizeRowsToContents();
resizeColumnsToContents();
How can I get a better fit for cells/rows sizes?
From this screenshot you can see a lot of space inside the rows:
I've used these functions to get resizing:
resizeRowsToContents();
resizeColumnsToContents();
How can I get a better fit for cells/rows sizes?
Try these:
verticalHeader()->setDefaultSectionSize(int size)
horizontalHeader()->setDefaultSectionSize(int size)
Try this:
void QHeaderView::setResizeMode(QHeaderView::ResizeToContents);