View Full Version : where can I get qWarning () output

1st March 2006, 10:18
Hi all,

I 'm using linux box, with Qt 3.

When I used qWarning to print a warning message, cant get that text on the screen.

Where can I get that message. Here is my simple program.

#include <qapplication.h>

int main ( int anArgumentCount, char** anArguments )
QApplication anApplication ( anArgumentCount, anArguments );

qWarning ( "warning message ");

return anApplication.exec ();


Thx in advance

1st March 2006, 10:44
did you look in the console?

1st March 2006, 10:56
Yes, Its working fine for me.

thank you.

1st March 2006, 10:56
did you look in the console?
For output in console used qDebug

And about qWarning from Asistant

Under X11, the text is printed to stderr. Under Windows, the text is sent to the debugger.

11th September 2006, 13:31
Adding console to the CONFIG options in the .pro file, also helps! ;)

9th September 2010, 09:22
Thanks a lot.. I was able to see the debug messages by using CONFIG += console in my application

9th September 2010, 15:10
Or write Yours message handler and put all messages into the file.Read about this here (http://doc.trolltech.com/4.6/qtglobal.html#qInstallMsgHandler).