PDA

View Full Version : How to set rows of QtableWidget to the same height?



sawerset
7th December 2008, 16:00
How to set rows of QtableWidget to the same height?

spirit
7th December 2008, 16:05
you can use method QHeaderView::resizeSections.

sawerset
7th December 2008, 18:03
I need to set height of all rows to be 5.
How it can be done with QHeaderView::resizeSections.

spirit
7th December 2008, 18:09
look at this method QHeaderVew::setDefaultSectionSize, e.g.


...
tableWidget->verticalHeader()->setDefaultSectionSize(50);
...