0

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.

  • Please include in your question what exactly you are doing (provide some code) and what exactly the error (message) is. – Bowdzone Oct 31 '14 at 08:19
  • Well, my answer was not fitting (it's friday!). However it seems to me that the problem is related to the behaviour of gedit with an empty parameter list, more than a wrong dir parameter. – BaCaRoZzo Oct 31 '14 at 09:19

0 Answers0