PDA

View Full Version : Set Environment Variables for startDetached() QProcess



hash
24th November 2010, 11:11
Hi all,

In Qt4, there is QProcess::setProcessEnvironment() for setting Env variables for the newly spawn process.

However, QProcess::startDetached() is a static member function, so setProcessEnvironment() doesn't apply. How does one set Env variables for a detached process in Qt?

thanks!

shenchen