[Qt-interest] Text Colorization in a QLineEdit

Jake Colman colman at ppllc.com
Thu Jul 30 04:11:39 CEST 2009


>>>>> "AP" == Andreas Pakulat <apaku at gmx.de> writes:

   AP> 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?

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

How does one change snippets of text in a QTextEdit?

-- 
Jake Colman | Director, Software Development
Principia Partners LLC
101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
e: colman at ppllc.com | w: www.principiapartners.com
Credit technology innovation awards winner 2008




More information about the Qt-interest-old mailing list