I have created a table using QTableView
and a QStandardItem
widget. How to remove the vertical header from QStandardItemModel
?
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With