QProcess and shell : Destroyed while process is still running
问题 I want to launch a shell script with Qt. QProcess process; process.start(commandLine, QStringList() << confFile); process.waitForFinished(); if(process.exitCode()!=0) { qDebug () << " Error " << process.exitCode() << process.readAllStrandardError(); } else { qDebug () << " Ok " << process.readAllStrandardOutput() << process.readAllStrandardError(); } The result is : Ok : Result.... " "" QProcess : Destroyed while process is still running. This message does not appear every time. What is the