The qprocess class is used to start another appearance and contact them.
Start a process by passing the name of the program you want to run and the command line parameter to the START () function. Parameters are provided as independent strings.
Qprocess runs and treats a process like an I/O device. You can read and write data from a process, just like a network TCP socket. You can use write () to write standard input to the process, or read standard output from the program through read (), Readline (), and getchar. Because it inherits the qiodevice class. Qprocess can also be a qxmlreader class as an input source.
When the process ends, qprocess enters the notrunning state again and sends a finished () signal.
The finished () signal provides the exit code and end state of the process as parameters. You can call the exitcode () function to obtain the exit code of the previous finished process. The exitstatus () function obtains its exit status. If an error occurs at any time, qprocess will receive an error () signal. You can also call the error () function to find the type of the last error, and use state () to find the current state of the process.
Qt: qprocess