I am inheriting from QTableView. Here is headerData which is responsible for the columns:
if (orientation == Qt::Horizontal) {
switch (section)
{
case COL_STATE_VARIABLE:
return tr("State variable");
case COL_VOLATILIZATION_OPTION:
return tr("Volatilization option");
...
else
{
SystemData & system = systemDataCopy[section];
return system.getDescription().c_str();
}
if (orientation == Qt::Horizontal) {
switch (section)
{
case COL_STATE_VARIABLE:
return tr("State variable");
case COL_VOLATILIZATION_OPTION:
return tr("Volatilization option");
...
else
{
SystemData & system = systemDataCopy[section];
return system.getDescription().c_str();
}
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.
Bookmarks