View Full Version : Changing a row hight
nnidza
25th December 2006, 09:19
Is there any way to change a rows hight in QTableView? Not just to particular row, but to all rows of QTableView. QTableView displays a QQueryModel data by the way...
jpn
25th December 2006, 09:57
You can access the headers by:
QTableView::horizontalHeader()
QTableView::verticalHeader()
Setting a default size for a section before attaching the model to the view should do the trick:
QHeaderView::setDefaultSectionSize()
Notice the note about the resize mode.
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.