Set background color of a table cell
General and Desktop
3
Posts
3
Posters
6.9k
Views
1
Watching
-
wrote on 7 Dec 2010, 18:29 last edited by
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.
-
wrote on 7 Dec 2010, 18:55 last edited by
"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 :-)
-
wrote on 7 Dec 2010, 20:01 last edited by
Or you provide a Qt::BackgroundRole in our models data() function.
1/3