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 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
    • Tarik EL JABIRIT Offline
      Tarik EL JABIRIT Offline
      Tarik EL JABIRI
      wrote on 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
      0
      • Tarik EL JABIRIT Tarik EL JABIRI

        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 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

        RatzzR 1 Reply Last reply
        0
        • B bluestone

          @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

          RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on 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
          1
          • RatzzR Ratzz

            @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 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

            RatzzR 1 Reply Last reply
            0
            • B bluestone

              @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

              RatzzR Offline
              RatzzR Offline
              Ratzz
              wrote on 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
              3
              • RatzzR Ratzz

                @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 last edited by
                #7

                @ratzz
                Solved, thank you!

                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