[SOLVED] Change initial number of QTableView Vertical Header
-
Hello all
I need to change the initial number of a QTableView vertical header to start with 0, not with 1
How can I do that?
Thanks
-
Hi,
You can subclass QHeaderView and set on your QTableView
-
Solved
@
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.
Cheers