[Qt-creator] printf() with Qt Creator?

nobodyhere pem.accounts.spam at gmail.com
Wed Apr 14 09:35:58 CEST 2010


thanks for the links - I will definitely read debug.html

PS: The reason I considered it Qt Creator list, is that I was specifically asking about stdout not showing up in the Qt Creator GUI's "Application Output".  However, qDebug() did show up in the Qt Creator "Application Output"

----- Original Message -----
From: "Sunil Thaha" <sunil.thaha at gmail.com>
To: qt-creator at trolltech.com
Sent: Tuesday, April 13, 2010 11:22:14 PM GMT -06:00 US/Canada Central
Subject: Re: [Qt-creator] printf() with Qt Creator?


This should help you - http://sector.ynet.sk/qt4-tutorial/debugging.html , http://doc.trolltech.com/4.6/debug.html 

BTW: This mailinglist is specific to Qt-Creator issues. You might want to post questions related to Qt in qt-interest mailinglist. 

Regards, 
Sunil 



On Wed, Apr 14, 2010 at 7:00 AM, nobodyhere < pem.accounts.spam at gmail.com > wrote: 


I googled for "stdout" rather than "printf", and I came across a special Qt method, qDebug(), and it works: 

#include <QDebug> 
qDebug("qDebug, printf style, %i\n", 5); 
qDebug() << "qDebug cout style, " << 5; 

I'm not sure about this whole thing about using Qt's version of STL... But I think for this new app I'm making with Qt Designer, I probably will. 




----- Original Message ----- 
From: "nobodyhere" < pem.accounts.spam at gmail.com > 
To: qt-creator at trolltech.com 
Sent: Tuesday, April 13, 2010 3:21:45 PM GMT -06:00 US/Canada Central 
Subject: printf() with Qt Creator? 

I created a new Qt4 Gui Application, and did a printf(). The printf() works (ie, goes to the Application Output) when I run via "Start Debugging F5". However, it doesn't print when I run via "Run, Ctrl+R". :-( 
_______________________________________________ 
Qt-creator mailing list 
Qt-creator at trolltech.com 
http://lists.trolltech.com/mailman/listinfo/qt-creator 


_______________________________________________
Qt-creator mailing list
Qt-creator at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator



More information about the Qt-creator-old mailing list