9
votes

Simple as that, I've been searching for hours without finding a solution. I have a QTableView connected to a QStandardItemModel and I just want to change the name it the QTableView headers. Now there is just 1, 2, 3, and so on.

1
You mean titles of columns? Why are you using QStandardItemModel? Wouldn't it be better to use/inherit QAbstractTableModel (it has header as an argument in constructor) - Wookie88

1 Answers