Quote Originally Posted by wysota View Post
You can't eat the cake and still have the cake. If you can't write three lines of code to intercept standard output from a child process then it will be putting its output into its parent output. You can filter it out by replacing the run command for your program with a script that will run your real application and filter is output but I think it is more work than adding those extra lines of code to your program.
Yes, I do have a way to start the process and receive the output by using other functions of QProcessor. But then I will have to analyze the output myself. As the command "ping" has complex output strings and the program would run on systems of different languages, I need to find a easier way to get the result, and that is why I don't use scripts. The STATIC function QProcess::execute() has a return value, which avoids analyzing result of ping, but I seem losing control of the output at the same time. If there's a way to control the behaviour of the static function I would like to know.