View Full Version : Environment of a QProcess

17th February 2011, 11:53

I want to run a list of batch files with QProcesses. the first batch file is an environment script, so it contains only the environment to set.

If I run that environment script in a QProcess and read the environment after the execution, it is always empty. QProcess returns only the environment that has been set before, not the environment after the script finished.

Does anybody know how to obtain all environment variables after the QProcess has finished?