QListWidget change part color of text

Viewed 1180

Click Here to open the Sample Picture, the red Arrow is what I want, But the output just show all the code and didn't work just like the Blue Arrow does

I try use < font color = red >...< /font > || < span >...< /span > in QListWidget, but There didn't have any Effect

What I want is some thing like:

item1 <font color=red>apple</font> ("item1" black, "apple" will output as red color)
item2 <font color=green>durian</font> (durian will output as green color)

Can Anyone help?

Ps: Accually what I really want is the picture below: When I type the word "cola", the list of QListwidget will Highlight/Change the color "%cola%" into Different color.

1 Answers
Related