#include<QDebug>

qDebug() <<"printing";

WORKS!!

Jothy

On Thu, Jul 22, 2010 at 3:18 PM, Jothy <[email protected]> wrote:

> No, even with "std::cout << "printing" << std::endl;" - it doesn't print ,
> prints only for console projects.
>
> Thanks,
>
> Jothy
>
>
> On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler <
> [email protected]> wrote:
>
>> On 07/22/2010 04:11 PM, ext Jothy wrote:
>> > Hi all,
>> >
>> > I am trying to print a string with cout, but it's not printing at all!
>> >
>> > I have included #include<iostream>
>> >
>> > then
>> >
>> > cout<<"printing";
>> >
>> > But, nothing prints, while the application compiles and runs fine.
>>
>> Not a Qt Creator problem.
>> You have to flush the output:
>> std::cout << "printing" << std::endl;
>>
>>
>> Christian
>> _______________________________________________
>> Qt-creator mailing list
>> [email protected]
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
>
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to