0

I am using a QTableView to display instructions for a low level emulator.

However, the rows index from 1 whereas the instructions index from 0. I either need to remove the row numbers and add an extra column which I can fill with the 0 indexed instruction number of change the row numbers so they index from 0.

I cannot see how to do either, am I just being blind?

Stefan
  • 3,669
  • 2
  • 32
  • 43

1 Answers1

4

Try:

yourtable->verticalHeader()->setVisible(false);

to hide the row numbers.

Miki
  • 40,887
  • 13
  • 123
  • 202