1.项目->run->Run in terminal 2.pro文件中添加 CONFIG +=console thread CONFIG +=console(这种没有验证) 来源:https://www.cnblogs.com/xpylovely/p/11546127.html 标签 控制台