PDA

View Full Version : Changing default directory of output files



bigbill
6th December 2010, 00:13
Hello.
I use the QProcess class in order to run external programs.
The external program is executed successfully, but it is not creating the output file in the destined folder.
After some search I have found that the file was created in the some folder that the obj files are generated

Is there an option to change that default output folder?
I am using the qtcreator environment.

ChrisW67
6th December 2010, 00:18
Processes write into the current working directory if you don't explicitly open a file with a full path: QProcess::setWorkingDirectory()