PDA

View Full Version : cout display



ryanv73
24th August 2012, 20:33
Hi

I have written an app that accepts user inputs from a widget. The problem is that i want to display the results(obtained from an input widget) to the console window. My console window stays blank though. To check that i do get input, i have written the results to a notepad document.

Can anyone please tell me how to write my results to the console window?

I tried this:

QTextStream cout(stdout)

cout << input->value();

but my console window still stays blank

Please help

Talei
25th August 2012, 08:28
Try to flush stream, cout.flush();

Rhayader
25th August 2012, 08:32
For windows you should have the
CONFIG += console added in your .pro file