title: Change text color of a specific column for QTreeView
body: <p>I have widget that inherits from QTreeView, and I want to change the text color, but only for a specific column. Currently I set the stylesheet, so the entire row changes the text color to red when the item is selected. </p>
  
  <pre><code>QTreeView::item:selected {color: red}
  </code></pre>
  
  <p>I want to change only the color of the first column when the item is selected. I know how to change the colour for specific columns (using ForegroundRole on the model and checking the index column), but I don't know how to do check if the index is selected in the model.</p>