title: How can you change the background or text color for part of a QTreeWidgetItem
body: <p>I am developing a Qt application in C++. The application centers around a tree widget, which has a sub-tree for each Entity in the system.  Entities have "highlight" colors, which can be specified by the user and highlight events related to a particular Entity.  The Entity root tree item's background color is the highlight color for the Entity.  When an event occurs related to the Entity, I'd like to make the background color of the identifier matched on the Entity the same as the Entity's highlight color.  Here's a rough mock-up of what I'm trying to do, with pseudo-HTML tags showing the colors and where I want them:</p>
  
  <pre><code>&lt;bgcolor=blue&gt;Entity A&lt;/bgcolor&gt;
      Events
          Identifier1 and &lt;bgcolor=blue&gt;Identifier2&lt;/bgcolor&gt;
          &lt;bgcolor=blue&gt;Identifier2&lt;/bgcolor&gt; @ 10:45:22
          &lt;bgcolor=blue&gt;Identifier3&lt;/bgcolor&gt; and Identifier4
  </code></pre>
  
  <p>As I understand it, this is not directly possible with QTreeWidgetItem.  I know that I can provide a delegate for the tree item to handle custom painting, but I am not well-versed in the QStyle part of Qt.  Our customers will be using this application on XP and Win7, and may or may not have WindowsClassic style enabled.  As such, handling all of the QStyle possibilities could become very complex.  Is there a shortcut by which I can have QStyle draw the parts of the text that I want with the background colors that I want, without having to handle every potential piece of the tree item's drawing needs?</p>