1.任何情况下都屏蔽
在工程文件.pro里面添加
DEFINES += QT_NO_WARNING_OUTPUT QT_NO_DEBUG_OUTPUT然后clear项目重新编译即可
2.Release版禁止输出debug信息
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT