ifconfig | grep \'inet\'
is working when executed via terminal. But not via QProcess
My sample code is
QProcess p1; p1.star
You can not use the pipe symbol in QProcess it seems.
However there is the setStandardOutputProcess Method that will pipe the output to the next process.
An example is provided in the API.