PDA

View Full Version : QTableWidget resizeColumnsToContents for whole table?



lalesculiviu
1st March 2010, 16:47
Hello!

I need to resize the columns of a QTableWidget, but considering all the rows (including those not visible in the view port). I read that I need to implement sizeHintForColumn(), but I don't want that, because it is non-standard. Is there another way to do that in a nice manner in Qt?

waynew
2nd March 2010, 01:08
Did you try resizeColumnsToContents() ? Works for me.