qDebug Qt console application to output to Qt Creator application output

Eugene picture Eugene · Aug 2, 2012 · Viewed 7.3k times · Source

How do I use qDebug in a Qt console application to output to the Qt Creator "application output" window? Currently qDebug writes to the console window which interferes with the non-debug output.

Using qDebug in a Qt GUI app outputs to application output window by default.

Application output

Answer

Bojan picture Bojan · Sep 13, 2012

You can either output everything to console or everything to Qt Creator's Application Output panel.

For sake of completeness: If you want to have all the output in the panel instead of console you can uncheck "Run in terminal" in Project->Run settings.