[SOLVED] Removing index numbers in QTablewidget

Issue

How can I remove the column with index numbers in QTableWidget ?

Solution

Not quite obvious, there are two views the vertical and the horizontal header, they are defined in QTableView, as any widget you can hide them so its

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

Answered By – Harald Scheirich

Answer Checked By – Candace Johnson (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *