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" <[email protected]>
To: [email protected]
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
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to