QT's QDebug cannot output logs

1. Project file pro

CONFIG += console c++11 # 可以配置多个,但是每个之间要有空格,不建议一行配置多个

If the output cannot be output after adding the console, it may be that the output is forbidden

DEFINES+= QT_NO_DEBUG_OUTPUT

Output in the terminal

Sometimes you want to output in a terminal, you can set it in the project
Insert picture description here

Guess you like

Origin blog.csdn.net/amwha/article/details/115263253