[Qt-creator] printf() with Qt Creator?
Eike Ziller
eike.ziller at nokia.com
Mon Apr 26 10:42:46 CEST 2010
On Apr 24, 2010, at 11:51 PM, ext Danny Price wrote:
>
> 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?
http://doc.qt.nokia.com/4.6/qmake-variable-reference.html#config
> 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
>
> <ATT00001..txt>
--
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
More information about the Qt-creator-old
mailing list