Hello!

I need to set the background color of the current cell in a QTreeView. I'd prefer to do this with QSS stylesheets, because the app is already using a lot of that.

I can do this:

Qt Code:
  1. MyTreeView {
  2. selection-background-color: lightGreen;
  3. selection-color: white;
  4. }
To copy to clipboard, switch view to plain text mode 

But that sets the background for the whole selected row, not just the currently active cell.

thanks!