PDA

View Full Version : [QTableWidget] Columns sizes



Macok
7th March 2009, 19:58
I change columns sizes by this way:
ui->tableWidget->setColumnWidth(number, width);but how can I set this width in qt designer?
horizontalHeaderDefaultSectionSize doesn't work.

aamer4yu
9th March 2009, 07:26
horizontalHeaderDefaultSectionSize works for all the columns...
If you have to set individual col size, you will need to use setColumnWidth...
It also makes sense, because Designer is to help you create a base gui. You want something specific, you need to code. Designer is not for replacing code I guess :o