See this thread.
Thanks for the tip!
I wrote a QAbstractItemDelegate subclass which implements paint() and sizeHint(), but while the paint() function is being called nicely, it doesn't look like the sizeHint() function is being called. I am using my subclass as a QTableWidget's item delegate, and without my sizeHint() being called, the table's cells are never sized to the correct height.
Do I need to do anything special to get my subclass's sizeHint() function to be called from the QTableWidget?
I found it.
QTableView::resizeRowsToContents()
wendelmaques (8th November 2011)
Bookmarks