I would like to change the color of a vertical header cell in a QTableWidget.
Here is my (failed) attempt:
QTableWidgetItem* vHeaderItem = new QTableWidgetItem;
vHeaderItem->setBackgroundColor(QColor("yellow"));
ui.tableWidget->setVerticalHeaderItem(r, vHeaderItem);
I have no idea why this wouldn't work.
This should work: