[Qt-creator] printf() with Qt Creator?
nobodyhere
pem.accounts.spam at gmail.com
Wed Apr 14 03:30:21 CEST 2010
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". :-(
More information about the Qt-creator-old
mailing list