PDA

View Full Version : Text color



bismitapadhy
28th May 2009, 10:36
Can we write or colored text into string
or
can we change color of string content?

Any idea please Help me.

Syntax or example for this.

wysota
28th May 2009, 10:41
QString is only a sequence of unicode characters without any visual interpretation. Take a look at QLabel - you can set a QString on it and you can apply visual formatting by using simple html tags such as <font color="red">

The_hero
29th May 2009, 15:42
thank you!
QLabel *label = new QLabel("<font color=red>hello!</font></h2>")
like this