I am inheriting from QTableView. Here is headerData which is responsible for the columns:

Qt Code:
  1. if (orientation == Qt::Horizontal) {
  2. switch (section)
  3. {
  4. case COL_STATE_VARIABLE:
  5. return tr("State variable");
  6. case COL_VOLATILIZATION_OPTION:
  7. return tr("Volatilization option");
  8. ...
  9. else
  10. {
  11. SystemData & system = systemDataCopy[section];
  12. return system.getDescription().c_str();
  13. }
To copy to clipboard, switch view to plain text mode 

As far as I know, the column I am trying to label is not a proper table column but is instead a header itself (a vertical header). I am basically trying to give a horizontal header to my vertical headers.