-
cout display
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
-
Re: cout display
Try to flush stream, cout.flush();
-
Re: cout display
For windows you should have the added in your .pro file