[PyQt] Selected text color of QTreeWidgetItem

Jake Richards blaven at gmail.com
Tue Jul 8 22:39:06 BST 2008


Hello:
  Is there any way to set the highlighted text color of QTreeWidgetItems?
Using setColor or setForeground, it only sets the color of the
non-highlighted text.  QTreeWidgetItems don't seem to have a setPalette call
but the QTreeWidget does.  The problem with setting the palette on the
QTreeWidget is that it sets the highlighted text color for all items in the
tree.  I'd like to do it on an individual item basis.  Is this possible?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080708/3c7be6d4/attachment.html


More information about the PyQt mailing list