I'm running QProcess from my GUI application (for example "gedit"), but when agruments is empty then argument passed the current directory.
QString program = "gedit";
QStringList arguments;
arguments << text(); // it's QLIneEdit function
m_editTextProcess->start(program, arguments); // m_editTextProcess is a QProcess pointer
.................................
when arguments is empty then argument passed current directory.