The QSpreadsheetHeaderView class is a special QHeaderView that mimic Google Spreadsheet header.
It means:
- A button with a context menu to hide/sort colums.
- Indicators for hidden columns. Clicking on it restore the column visibility.
QSpreadsheetHeaderView *header = new QSpreadsheetHeaderView(Qt::Horizontal, this);
QTableView *tableView = new QTableView(this);
tableView->setHorizontalHeader(header);
Qt 4.4.x.
MIT