views:

58

answers:

2

From this screenshot you can see a lot of space inside the rows:

alt text

I've used these functions to get resizing:

resizeRowsToContents();
resizeColumnsToContents();

How can I get a better fit for cells/rows sizes?

A: 

Try these:

verticalHeader()->setDefaultSectionSize(int size)
horizontalHeader()->setDefaultSectionSize(int size)
Arnold Spence
+1  A: 

Try this:

void QHeaderView::setResizeMode(QHeaderView::ResizeToContents);
tibur