PDA

View Full Version : QTableWidget cellwidgets ResizeToContents



Henry Blue Heeler
31st May 2015, 03:15
I have a QTableWidget whose cells are QTextEdits. setSectionResizeMode( QHeaderView::ResizeToContents ) has no effect, as the cells remain the same size regardless of content.
I'm using a QVBoxLayout. Any way to get the cell widgets to ResizeToContents?

Henry Blue Heeler
3rd June 2015, 00:10
I'm thinking a custom item delegate. Correct me if I'm wrong.