I am using QProcess on Windows and I have a problem running an exe file that is located in Program Files. Trying to run the same with the CreateProcess() function works ok. Space in the path is not the problem. I think it is related to user access rights or something similar. I can use the CreateProcess() but I would like to know if there is any way how to get QProcess working as I need.
My code looks like this:
QProcess* myProcess = new QProcess(this);
myProcess->setProcessEnvironment(myEnvVars);
myProcess->start("myExePath");
Edit: My platform is Visual Studio 2015 and Qt 4.71