Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How visualize output in "application output" panel?
Forum Updated to NodeBB v4.3 + New Features

How visualize output in "application output" panel?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 5.1k Views
  • 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.
  • B Offline
    B Offline
    bluestone
    wrote on 31 Aug 2019, 13:51 last edited by
    #1

    I created a qt console application, it is just
    cout << "hello!";

    When I run it the output is print in a new Terminal window (macOs), how can I visualize the output in Qt Creator in the "Application Output" panel?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tarik EL JABIRI
      wrote on 31 Aug 2019, 14:10 last edited by
      #2

      hi @bluestone,

      try this :

      #include<QDebug>
      
      qInfo() << "C++ Style Info Message";
      qInfo( "C Style Info Message" );
      
      qDebug() << "C++ Style Debug Message";
      qDebug( "C Style Debug Message" );
      
      qWarning() << "C++ Style Warning Message";
      qWarning( "C Style Warning Message" );
      
      qCritical() << "C++ Style Critical Error Message";
      qCritical( "C Style Critical Error Message" );
      
      

      regards.

      B 1 Reply Last reply 31 Aug 2019, 14:35
      0
      • T Tarik EL JABIRI
        31 Aug 2019, 14:10

        hi @bluestone,

        try this :

        #include<QDebug>
        
        qInfo() << "C++ Style Info Message";
        qInfo( "C Style Info Message" );
        
        qDebug() << "C++ Style Debug Message";
        qDebug( "C Style Debug Message" );
        
        qWarning() << "C++ Style Warning Message";
        qWarning( "C Style Warning Message" );
        
        qCritical() << "C++ Style Critical Error Message";
        qCritical( "C Style Critical Error Message" );
        
        

        regards.

        B Offline
        B Offline
        bluestone
        wrote on 31 Aug 2019, 14:35 last edited by
        #3

        @tarik-el-jabiri

        I get:
        0_1567262031475_Screenshot 2019-08-31 at 15.32.45.png

        Nothing in Application Output panel:
        0_1567262075956_Screenshot 2019-08-31 at 15.33.20.png

        R 1 Reply Last reply 31 Aug 2019, 14:46
        0
        • B bluestone
          31 Aug 2019, 14:35

          @tarik-el-jabiri

          I get:
          0_1567262031475_Screenshot 2019-08-31 at 15.32.45.png

          Nothing in Application Output panel:
          0_1567262075956_Screenshot 2019-08-31 at 15.33.20.png

          R Offline
          R Offline
          Ratzz
          wrote on 31 Aug 2019, 14:46 last edited by Ratzz
          #4

          @bluestone
          Can you run qmake and check?

          Also try adding "CONFIG += console" to your .pro file.

          This may help.

          --Alles ist gut.

          B 1 Reply Last reply 31 Aug 2019, 14:56
          1
          • R Ratzz
            31 Aug 2019, 14:46

            @bluestone
            Can you run qmake and check?

            Also try adding "CONFIG += console" to your .pro file.

            This may help.

            B Offline
            B Offline
            bluestone
            wrote on 31 Aug 2019, 14:56 last edited by
            #5

            @ratzz
            How can I run qmake and check?

            This is my p1.pro file:
            0_1567263354116_Screenshot 2019-08-31 at 15.54.30.png

            R 1 Reply Last reply 31 Aug 2019, 15:06
            0
            • B bluestone
              31 Aug 2019, 14:56

              @ratzz
              How can I run qmake and check?

              This is my p1.pro file:
              0_1567263354116_Screenshot 2019-08-31 at 15.54.30.png

              R Offline
              R Offline
              Ratzz
              wrote on 31 Aug 2019, 15:06 last edited by Ratzz
              #6

              @bluestone
              If u need output in QtCreator console then you should remove CONFIG += console

              https://doc.qt.io/qt-5/qmake-variable-reference.html#config

              --Alles ist gut.

              B 1 Reply Last reply 31 Aug 2019, 16:24
              3
              • R Ratzz
                31 Aug 2019, 15:06

                @bluestone
                If u need output in QtCreator console then you should remove CONFIG += console

                https://doc.qt.io/qt-5/qmake-variable-reference.html#config

                B Offline
                B Offline
                bluestone
                wrote on 31 Aug 2019, 16:24 last edited by
                #7

                @ratzz
                Solved, thank you!

                1 Reply Last reply
                0

                1/7

                31 Aug 2019, 13:51

                • Login

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