How to start application(path with space) using QProcess on mac OSX? -


it goes when using qprocess start program if path without space.
eg:

qprocess app; app.startdetached("open /users/test/desktop/mytest/hello.app"); 

but, doesn't work if program path containing spaces.
eg:

qprocess app; app.startdetached("open /users/test/desktop/my test/hello.app"); 

someone can me , tell me how start program space in path?
thanks!

you need use quotes in string path:-

app.startdetached("open \"/users/test/desktop/my test/hello.app\""); 

without quotes, space suggest next part of path 2nd parameter passed call open.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -