PDA

View Full Version : QTreeView item color



tmmak
11th January 2011, 05:11
Is there a way to change the text color of a particular item in a QTreeView? Thx.

tbscope
11th January 2011, 06:08
With a delegate.

You can create a custom user role "text color" for example, and then let the delegate set the font color.

Edit: did you try rich text? Maybe it's a simple as using richt text.