转 qt在GUI显示时,将调试信息输出到控制台的设置_136.la
1. 在.pro文件中添加一下设置:
CONFIG += console
2. 项目的【构建和运行】中,需要勾选【Run in terminal】: