Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the vertical header in QStandardItemModel?

I have created a table using QTableView and a QStandardItem widget. How to remove the vertical header from QStandardItemModel?

like image 583
Masthan Avatar asked Sep 05 '13 07:09

Masthan


1 Answers

If I got you right, and you want to hide the header, then you should use the header's hide() method:

QTableView * view = new QTableView();
view->verticalHeader()->hide();

Don't forget to #include <QHeaderView>

like image 94
SingerOfTheFall Avatar answered Nov 10 '22 10:11

SingerOfTheFall