[Qt-creator] printf() with Qt Creator?
Danny Price
deepblue842 at googlemail.com
Sat Apr 24 23:51:43 CEST 2010
On 24 Apr 2010, at 22:22, Robert Hairgrove wrote:
>>
>
> This is also an issue in non-Qt apps. Just change this line:
> std::cout << "test";
> to this:
> std::cout << "test" << std::endl;
>
> On some platforms (*nix, I think) you need to do this in order to keep
> the next output from overwriting the line "test".
Thanks it now works! The CONFIG += console line appears to have no effect on OSX either way. I suppose it's really for Windows?
I've not been able to get printf to work though, even with a '\n'.
> _______________________________________________
> 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/20100424/1705af0f/attachment.html
More information about the Qt-creator-old
mailing list