How to print to console when using Qt

前端 未结 12 1785
执笔经年
执笔经年 2020-11-29 15:59

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

12条回答
  •  清酒与你
    2020-11-29 16:17

    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.

提交回复
热议问题