
Originally Posted by
ChrisW67
From QTableView obtain verticalHeader()
From the vertical header obtain the model()
From the model you can call setData() to change the text, colour, font, pixmap etc. of any vertical header entry.
You might need to use a QStyledItemDelegate on the table to signal when an editor is opened/close so that you can change the vertical header on that row.
i have use this
index = tableau->model()->index(0,0) ;
tableau->verticalHeader()->model()->setData(index,"*",Qt::DisplayRole);
QModelIndex index ;
index = tableau->model()->index(0,0) ;
tableau->verticalHeader()->model()->setData(index,"*",Qt::DisplayRole);
To copy to clipboard, switch view to plain text mode
but the cell was changed not the cell in vertical header
Bookmarks