PDA

View Full Version : QTableWidget columns to expand to window size



bruccutler
13th April 2007, 16:00
I have multiple QTableWidgets with varying numbers of columns. I want the table to adjust to the size of the window so that it fills the window, even if there is only one column.

- BRC

bruccutler
13th April 2007, 16:02
Nevermind - found it in another post:
_tableWidget->horizontalHeader()->setStretchLastSection( true );