I\'m using Qt4 and C++ for making some programs in computer graphics. I need to be able to print some variables in my console at run-time, not debugging, but cout
cout
If you are printing to stderr using the stdio library, a call to fflush(stderr) should flush the buffer and get you real-time logging.
fflush(stderr)