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. QtCreator: Application output
Forum Updated to NodeBB v4.3 + New Features

QtCreator: Application output

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 4 Posters 11.9k Views 2 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.
  • A Offline
    A Offline
    amigo421
    wrote on last edited by
    #1

    HI ,
    i know this quesiton was raised a lot of times, howver still don't see the answer.
    How to put console output into APplication output panel in Qt Creator?

    I see mostly the reply is a using qDebug()

    however Qt SDK is not installed on my host

    the only way is a using standard library .

    any ideas, please?

    kshegunovK 1 Reply Last reply
    0
    • A amigo421

      HI ,
      i know this quesiton was raised a lot of times, howver still don't see the answer.
      How to put console output into APplication output panel in Qt Creator?

      I see mostly the reply is a using qDebug()

      however Qt SDK is not installed on my host

      the only way is a using standard library .

      any ideas, please?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      @amigo421
      Hello,
      You could write to the output stream using QTextStream, however I'm not sure it'll get into the QtCreator applicaiton output window. Usually qDebug() is used for that, but you could try this one as well:

      QTextStream cerr(stderr);
      cerr << "Something that appears on the error stream";
      

      Or for the console window:

      QTextStream cout(stdout);
      cout << "Something that appears on the standard output";
      

      If you're not using Qt, you could try the standard streams:

      srd::cerr << "Some text on the error stream";
      

      Kind regards.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        asanka424
        wrote on last edited by
        #3

        In Qt Creator, go to Projects and Run, there is a checkbox 'Run in terminal'. If you uncheck that your output wil be printed in Qt creators' "Application Output" panel.

        Hope that is what you want

        1 Reply Last reply
        1
        • A Offline
          A Offline
          amigo421
          wrote on last edited by amigo421
          #4

          did you really check this? it doesn't work for me;

          1. std::cerr output is not shown in APplication Output
          2. std::cout is also not showing there
            independently of in console or not option

          Debugging starts
          Debugging has finished

          is only messages in Application Output

          1 Reply Last reply
          0
          • D Offline
            D Offline
            deleted321
            wrote on last edited by
            #5

            I don't know if you resolved, but the ultimate correct answer for me was that of asanaka424.

            1 Reply Last reply
            0

            • Login

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