The QProcess class, part of the Qt framework, provides a way to start external programs and to communicate with them.
The QProcess
class is used to start external programs and to communicate with them.
To start a process, pass the name and command line arguments of the program you want to run as arguments to start()
. Arguments are supplied as individual strings in a QStringList
.
Alternatively, you can set the program to run with setProgram()
and setArguments()
, and then call start()
or open()
.
The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.