Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] Change initial number of QTableView Vertical Header
I need to change the initial number of a QTableView vertical header to start with 0, not with 1
How can I do that?
You can subclass QHeaderView and set on your QTableView
for(int i = 0; i < modelo->rowCount(); i++)
modelo->setHeaderData(i, Qt::Vertical, i);
Indeed, it's way simpler :) I've over engineered your problem :D
No problem. By the way, thanks for your replies. Its a very good help.