PDA

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



npc
1st March 2006, 09: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

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

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

thank you.

zlatko
1st March 2006, 09: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.

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

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

Lesiok
9th September 2010, 14: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).