I have a QTableView and QStandardItemModel and I have got 3 columns. I want that one column adjust itself when I change the size of the main window. But I get following error:
“pointer to incomplete class type “QHeaderView” is not allowed”
The error appears when i write this code.
QTableView* output_view = new QTableView(this);
output_view->horizontalHeader()->setSectionResizeMode(QHeaderView::Strech);
New contributor
mallocFreestyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1