[Qt-creator] printf() with Qt Creator?
Sunil Thaha
sunil.thaha at gmail.com
Wed Apr 14 06:22:14 CEST 2010
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100414/7766ce1c/attachment.html
More information about the Qt-creator-old
mailing list