<< CMake Error: CMake can not determine linker language for target: [XYZ] | Home | CMake: Copy files after build >>

qt-creator: make stdout work in application-output-view

I really do love qt-creator and it is my IDE of choice for c++-development. But it has here and there some flaws....beside the fact that there are not tabs to represent the opened files, one strange thing is that outputs to stdout get are not visibile immediately. I'm not 100% sure how it is triggered (maybe when the internal buffer is filled completely?).

In order to show the output directly, just add this to your main.cpp:

setbuf(stdout, NULL);

Another flaw is that from time to time you have invalid start-configs and qt-creator refuses to start your application. This is due to the path not set properly. Here helps a restart and the path is set correctly afterwards

Reference(setbuf): https://bugreports.qt.io/browse/QTCREATORBUG-3994

Tags :

Export this post as PDF document  Export this post to PDF document

Social Bookmarks :  Add this post to Slashdot    Add this post to Digg    Add this post to Reddit    Add this post to Delicious    Add this post to Stumble it    Add this post to Google    Add this post to Technorati    Add this post to Bloglines    Add this post to Facebook    Add this post to Furl    Add this post to Windows Live    Add this post to Yahoo!

Home