Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to show colored text in Qt Creator application output panel?
Forum Updated to NodeBB v4.3 + New Features

How to show colored text in Qt Creator application output panel?

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    serpheroth
    wrote on 13 Dec 2014, 06:12 last edited by
    #1

    In the change log of Qt Creator 3.3.0, it says the application output panel support ansi color.
    But when I try to print colored texts like

    std::cout << "\e[38;5;82mHello \e[38;5;198mWorld" << std::endl;

    What I can see from the application output panel is the verbatim output of the string, instead of colored text of "Hello Wolrd"

    Am I using it in the wrong way?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jaskij
      wrote on 16 Dec 2014, 14:33 last edited by
      #2

      Mayb only through qDebug()? Although that would be stupid.

      1 Reply Last reply
      0

      1/2

      13 Dec 2014, 06:12

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved