I change columns sizes by this way:but how can I set this width in qt designer?Qt Code:
ui->tableWidget->setColumnWidth(number, width);To copy to clipboard, switch view to plain text mode
horizontalHeaderDefaultSectionSize doesn't work.
I change columns sizes by this way:but how can I set this width in qt designer?Qt Code:
ui->tableWidget->setColumnWidth(number, width);To copy to clipboard, switch view to plain text mode
horizontalHeaderDefaultSectionSize doesn't work.
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
Bookmarks