I am trying to set the column width manually in a QTableView . Why is this piece of code not working?
tabb = new QTableView; tabb->resizeColumnsToContents(); for (int col=0; col<20; col++) { tabb->setColumnWidth(col,80); }
If I omit tabb->resizeColumnsToContents(); It still doesn't work.
source share