2012-04-28 66 views

回答

5

試試這個:

QProcess::startDetached("cmd.exe"); 
+0

太謝謝你了! – Alex 2012-04-28 14:56:14

+1

以下對於測試命令是有用的,因爲它使控制檯保持打開狀態:'QProcess :: startDetached(「cmd.exe/K」+ otherCommand);' – 2014-09-19 13:24:10