Hi,
Quick answer. If you want remove some columns just.
ui.ClientTableView->setColumnHidden(4,true);
ui.ClientTableView->setColumnHidden(5,true);
ui.ClientTableView->setColumnHidden(6,true);
ui.ClientTableView->setColumnHidden(4,true);
ui.ClientTableView->setColumnHidden(5,true);
ui.ClientTableView->setColumnHidden(6,true);
To copy to clipboard, switch view to plain text mode
And if you want to set custom headers
clientsmodel->setHeaderData(20, Qt::Horizontal, tr("Deadline"));
clientsmodel->setHeaderData(21, Qt::Horizontal, tr("Finished"));
clientsmodel->setHeaderData(22, Qt::Horizontal, tr("Budget"));
clientsmodel->setHeaderData(20, Qt::Horizontal, tr("Deadline"));
clientsmodel->setHeaderData(21, Qt::Horizontal, tr("Finished"));
clientsmodel->setHeaderData(22, Qt::Horizontal, tr("Budget"));
To copy to clipboard, switch view to plain text mode
All numbers in examples are column number.
Bookmarks