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.
//Path to the Application
QString appPath
= "/home/username/ConsoleApp ";
arguments << "one";
arguments << "two";
nAp->start( appPath, arguments );
if(!nAp->waitForStarted(-1)) {
qDebug() << "Ap has not started";
QObject *parent;
QProcess *nAp = new QProcess(parent);
//Path to the Application
QString appPath = "/home/username/ConsoleApp ";
QStringList arguments;
arguments << "one";
arguments << "two";
nAp->start( appPath, arguments );
if(!nAp->waitForStarted(-1)) {
qDebug() << "Ap has not started";
To copy to clipboard, switch view to plain text mode
Thanks for the Help.
Bookmarks