How to set rows of QtableWidget to the same height?
How to set rows of QtableWidget to the same height?
you can use method QHeaderView::resizeSections.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
I need to set height of all rows to be 5.
How it can be done with QHeaderView::resizeSections.
look at this method QHeaderVew::setDefaultSectionSize, e.g.
Qt Code:
... tableWidget->verticalHeader()->setDefaultSectionSize(50); ...To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks