Dear Santosh,
Thank you for your help.
The following code compiled and executed:
arguments << "-b" << "-t" << "input.txt";
myProcess->start(program, arguments);
QObject *parent;
QString program = "./ent";
QStringList arguments;
arguments << "-b" << "-t" << "input.txt";
QProcess *myProcess = new QProcess(parent);
myProcess->start(program, arguments);
To copy to clipboard, switch view to plain text mode
1. However I now need to catch the results into a QString. What is the best way to do that?
2. Also, can I be certain that the rest of the program waits before this process is executed and
what happens if some error happens. How to catch an error?
Thanks!
Bookmarks