I have created a table using QTableView
and a QStandardItem
widget. How to remove the vertical header from QStandardItemModel
?
Asked
Active
Viewed 8,947 times
13

László Papp
- 51,870
- 39
- 111
- 135

Masthan
- 727
- 1
- 8
- 29
-
2You don't remove it from the model, you hide it in the view – RobbieE Sep 05 '13 at 07:38
1 Answers
24
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>

SingerOfTheFall
- 29,228
- 8
- 68
- 105