[Qt-interest] Text Colorization in a QLineEdit

Andreas Pakulat apaku at gmx.de
Mon Jul 27 15:19:16 CEST 2009


On 27.07.09 08:48:56, Jake Colman wrote:
> I will be creating some text programatically and inserting it into a
> QLineEdit.  Some of the text in the string must be a different color
> than other text in the string.  What is the easiest way to do this?

Implement your own QLineEdit. There's no way to do that with the existing
widget. Only QTextEdit supports changing the color of arbitrary text
snippets.

Andreas

-- 
Time to be aggressive.  Go after a tattooed Virgo.



More information about the Qt-interest-old mailing list