QProcess process; process.setProgram("calc.exe"); process.start();
QProcess process; process.setProgram("/usr/bin/python3"); process.setArguments(QStringList() << "/path/to/myscript.py"); process.start();In the second example, we also use the setArguments() function to pass arguments to the Python script. As for the package library, QProcess is a part of the QtCore module of Qt.