Results 1 to 2 of 2

Thread: Qt Console App modify test colour

  1. #1
    Join Date
    Aug 2010
    Posts
    28
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt Console App modify test colour

    Something I have been curious about for some time.

    Is it possible under Qt to modify console text colour? I would like to add a verbose startup option to one of my applications that can do a green for OK and red for failed.

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qt Console App modify test colour

    Yes,

    The most correct way is to use NCurses since not all shells are equal.

    However, you can do this for most shells without using a "comprehensive" library as NCurses.There are special codes you can put in your strings to blink the text, or print it in another color.
    Google knows more. Search for bash or shell color codes.

Similar Threads

  1. fade from one colour to another
    By panduro in forum Newbie
    Replies: 2
    Last Post: 18th June 2008, 13:30
  2. Modify a ContextMenu
    By smarinr in forum Qt Programming
    Replies: 5
    Last Post: 10th May 2008, 17:41
  3. Same shape different colour
    By anafor2004 in forum Newbie
    Replies: 5
    Last Post: 11th February 2008, 10:02
  4. Column Colour
    By sumsin in forum Qt Programming
    Replies: 8
    Last Post: 15th June 2006, 10:38
  5. background colour
    By kw in forum Qt Programming
    Replies: 6
    Last Post: 11th April 2006, 00:44

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.