ifconfig | grep \'inet\'
is working when executed via terminal. But not via QProcess
My sample code is
QProcess p1; p1.star
The QProcess object does not automatically give you full blown shell syntax: you can not use pipes. Use a shell for this:
QProcess
p1.start("/bin/sh -c \"ifconfig | grep inet\"");