Problem
I'm trying to start an application using QProcess, however i can't figure out how to supply arguments with whitespace in them. I have tried
What i have tried
QString appPath = "\"C:/Users/USER/Google Drive/projects/qt_projects/someproject/
ghostpdl-8.71-win32/gxps-871.exe\"";
QStringList arguments;
arguments << "-sDEVICE=pdfwrite" << "-sOutputFile=\"C:/Users/USER/Google Drive/
projects/qt_projects/someproject/output.pdf\"" << "-dNOPAUSE \"C:/Users/USER/
Google Drive/projects/qt_projects/someproject/file.xps\"";
QProcess *converter = new QProcess();
converter->start(appPath, arguments);
I would think this would be the same as running the console command (Which works):
"C:/Users/USER/Google Drive/projects/qt_projects/someproject/
ghostpdl-8.71-win32/gxps-871.exe" -sDEVICE=pdfwrite
-sOutputFile="C:/Users/USER/Google Drive/projects/qt_projects/
someproject/output.pdf" -dNOPAUSE "C:/Users/USER/Google Drive/
projects/qt_projects/someproject/file.xps"
Can anyone explain to me how i acheive this?