Results 1 to 4 of 4

Thread: How to hange color for different texts in plaintextedit?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default How to hange color for different texts in plaintextedit?

    Hi All,

    I've a plain text edit in myt dialog. i want to write "XYZ " in red color and "ABC" in black color. How can i do this? i tried to set pallet. but its not working. I've attached sample code of my apllication. please help me.

    Thank you.
    Attached Files Attached Files

Similar Threads

  1. Replies: 5
    Last Post: 2nd November 2012, 03:38
  2. Replies: 2
    Last Post: 13th August 2010, 10:08
  3. How to set the Text Cursor in a PlainTextEdit box?
    By Mia S. in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2010, 16:30
  4. Replies: 2
    Last Post: 13th February 2010, 18:33
  5. How to make plainTextEdit autofill to parent window?
    By kid2000 in forum Qt Programming
    Replies: 7
    Last Post: 17th February 2009, 09:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.