[SOLVED]->How to set Path of QProcess with blank spaces !
Hello! Friends,
I have tried to start a QProcess in my gui but had a problem to start it with the blank space in its path. For example when i try following code: -
Code:
proc.start("C:/MyExamples/sample/sample.exe");
it works properly but when blank space comes as in "Program Files" it doesn't work as shown: -
Code:
proc.start("C:/Program Files/sample/sample.exe");
Can anyone please help me out in this. I will be grateful:)
Thanks in advance.
Re: How to set Path of QProcess with blank spaces !
I used QDir::setCurrent() and its working.
Thanks & Regards.