I tried to use qt stylesheet to target a specific column.
In HTML CSS you can do something like this
table.players td:nth-child(N) { /* ... */ }
Looking at the docs, I can't find a way to target a specific qTableView column
http://qt-project.org/doc/qt-4.8/stylesheet.html
http://qt-project.org/doc/qt-4.8/stylesheet-reference.html
http://qt-project.org/doc/qt-4.8/stylesheet-syntax.html
I thought in this example I could replace section with a number to target a specific column but I don't think I understand what it is doing
http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qtableview
QTableView QTableCornerButton::section {
background: red;
border: 2px outset red;
}
If this is not possible with qt style sheet, what's the best way to override the paint method and reusing Qt's code?