PDA

View Full Version : How do I change the font color in QTextBrowser?



probine
29th November 2006, 12:53
I have a QTextBrowser and I want to show different lines with different fonts color. For example:

This line should be red
This one should be blue
etc...
etc..

How ?

munna
29th November 2006, 13:03
Use the basic html tags to do this.

jpn
29th November 2006, 13:08
Or QTextCursor::setBlockCharFormat()