How visualize output in "application output" panel?
Unsolved
General and Desktop
-
wrote on 31 Aug 2019, 13:51 last edited by
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?
-
wrote on 31 Aug 2019, 14:10 last edited by
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.
-
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.
wrote on 31 Aug 2019, 14:35 last edited by -
wrote on 31 Aug 2019, 14:46 last edited by Ratzz
@bluestone
Can you runqmake
and check?Also try adding "CONFIG += console" to your .pro file.This may help.
-
@bluestone
Can you runqmake
and check?Also try adding "CONFIG += console" to your .pro file.This may help.
-
wrote on 31 Aug 2019, 15:06 last edited by Ratzz
@bluestone
If u need output in QtCreator console then you should removeCONFIG += console
-
@bluestone
If u need output in QtCreator console then you should removeCONFIG += console
7/7