Results 1 to 3 of 3

Thread: Text color

  1. #1
    Join Date
    May 2009
    Posts
    94
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10

    Post Text color

    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.
    Last edited by bismitapadhy; 28th May 2009 at 09:59.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Text color

    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">
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2009
    Posts
    7
    Thanks
    3

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Setting a highlight text color for QTableWidgetItem
    By Hiba in forum Qt Programming
    Replies: 6
    Last Post: 14th December 2007, 10:51
  3. Setting text color on QLabel
    By Yorma in forum Newbie
    Replies: 11
    Last Post: 15th June 2006, 07:25
  4. Replies: 1
    Last Post: 17th March 2006, 08:19
  5. Change the text color tab page
    By gtthang in forum Qt Programming
    Replies: 4
    Last Post: 18th February 2006, 17:38

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
  •  
Qt is a trademark of The Qt Company.