문제

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>

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top