QProcess::startDetached() not show console window
问题 I have a GUI program that start cli program by click button. I want to see console window and don't need wait until cli program end. So I use code like this: QProcess::startDetached("cmd.exe"); After click button I don't see console window. But see cmd.exe process in task manager. I tried use system() command but it freeze my app before cli program end. Is there any way to make window visible? 回答1: It is the expected behavior. At least in Windows startDetached is equivalent to calling