I have QT TableWidget and I would like to change background color of column based on their value. Seems I can change all columns background doing something like this:
tableWidget->horizontalHeader()->setStyleSheet("QHeaderView::section {background-color: red}");
But I want to change color for given column and each column color can be different. Anyone has done anything like this ?