Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QProcess 根本不显示黑色控制台窗口。
这是我使用的代码:
QProcess*p=new QProcess(this); p->start("cmd.exe");
将 cmd.exe 替换为 calc.exe 会成功启动计算器。
试试这个:
QProcess::startDetached("cmd.exe");