Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

is process launched successfully?



  • i have child process which i start with QProcess::startDetached.
    the child process may return with exit code -2.
    in this case, will startDetached return true or false?
    (sorry i cannot test right now, and need quick answer for this)


  • Lifetime Qt Champion

    No since startDetached() starts (as the function name already suggests) the process in detached mode and therefore does not know anything about it. Don't use startDetached() if you need something from the process.


Log in to reply