In my code I declare a QTableView *tableView = new QTableView(), then I procede to call several functions.
tableView->verticalHeader->hide()
...
tableView->setColumnWidth(0, 15);
tableView->setColumnWidth(1, 15);
tableView->setColumnWidth(2, 15);
...
tableView->verticalHeader->hide()
...
tableView->setColumnWidth(0, 15);
tableView->setColumnWidth(1, 15);
tableView->setColumnWidth(2, 15);
...
To copy to clipboard, switch view to plain text mode
The problem is, the tableView doesn't reflect the setColumnWidth! I would think this would work with little to no effort? Do I have to populate the tableView with data first? Seems kinda silly.
Bookmarks