qt打印输出到控制台 创建工程的时候是QT Console Application 1.项目->run->Run in terminal 2.pro文件中添加 CONFIG +=console thread CONFIG +=console(这种没有验证)