qDebug Qt console application to output to Qt Creator application output

后端 未结 2 1941
南方客
南方客 2021-02-09 07:17

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 th

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-09 08:00

    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.

提交回复
热议问题