But why do you want to use grep to find something? Starting a new process is a very time consuming and resource intensive operation. It is much faster to do it directly in your app using http://doc.qt.io/qt-5/qstring.html#indexOf or regular expressions.