How to change header's title of a QTableView?

qt

Solution

QStandardItemModel::setHorizontalHeaderLabels is probably what you need.

Problem

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.

Original source

Related problems