PDA

View Full Version : Changing a row hight



nnidza
25th December 2006, 08: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, 08: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.