I have a table that renders a cell background green or red depending on its value. Here's a picture:
Capture.png
When I select/focus the table row, the green color is lost:
Capture2.png
I would like to keep a greenish color only for the single cell on focus/selection. Perhaps I would make it a slightly darker green color. How would I go about doing this?
Here is my code that renders the cell green or red:
Qt Code:
{ ... if (role == Qt::BackgroundRole) { if (index.column() == static_cast<int>(Column::STATUS)) { if (externalDataSource.getStatus(reason) == "OK") { } else { } } } ... }To copy to clipboard, switch view to plain text mode
Bookmarks