...and of course obtaining the output in some way I can use it. I'd use it for an ls | grep, but it's good to know for any future issues.
Thanks in advance.
...and of course obtaining the output in some way I can use it. I'd use it for an ls | grep, but it's good to know for any future issues.
Thanks in advance.
QProcess p;
p.start( /* whatever your command is, see the doc for param types */ );
p.waitForFinished(-1);
QString p_stdout = p.readAllStandardOutput();
QString p_stderr = p.readAllStandardError();