Hi All,

My Problem is Using QProcess Class, I have a CLI application that works without arguments but if I pass some Arguments the process not run. Maybe I'm doing something wrong . This is a Code sample.

Qt Code:
  1. QObject *parent;
  2. QProcess *nAp = new QProcess(parent);
  3.  
  4. //Path to the Application
  5. QString appPath = "/home/username/ConsoleApp ";
  6. QStringList arguments;
  7. arguments << "one";
  8. arguments << "two";
  9.  
  10. nAp->start( appPath, arguments );
  11. if(!nAp->waitForStarted(-1)) {
  12. qDebug() << "Ap has not started";
To copy to clipboard, switch view to plain text mode 

Thanks for the Help.