Set background color of a table cell
-
Hello -
I'm trying to figure out a way to set the background color of a table cell within a QTableView. I'm using Qt 4.7.1. Could somebody help?
Thank You.
-
"This link":http://doc.qt.nokia.com/4.7/stylesheet-reference.html and "this example":http://doc.qt.nokia.com/4.7/stylesheet-examples.html#customizing-qtableview may help you :-)
-
Or you provide a Qt::BackgroundRole in our models data() function.