aus der Doku:
int QTableView::sizeHintForRow ( int row ) const [virtual protected]
Returns the size hint for the given row's height or -1 if there is no model.
If you need to set the height of a given row to a fixed value, call QHeaderView::resizeSection() on the table's vertical header.
If you reimplement this function in a subclass, note that the value you return is only used when resizeRowToContents() is called. In that case, if a larger row height is required by either the vertical header or the item delegate, that width will be used instead.
Reimplemented from QAbstractItemView.
See also QWidget::sizeHint and verticalHeader().
vorrausgesetzt du benutzt nen modelbasierendes, aber du hasst nach QTableView gefragt
Also kleiner als benotigt wirst ned kriegen, ausser du schreibst nen eigenes itemdeligate was kleiner sein kann.
wenns groesser sein soll, einfach sizeHintForRow() an dem QTableView ueberschreiben ... und an dem vertiacal header das resizeRowToContents() aufrufen, gleich am Anfang ...
Ciao ...