Class: QgsRunProcess

Executes an external program/script.

It can optionally capture the standard output and error from the process and displays them in a dialog box.

On some platforms (e.g. iOS) , the process execution is skipped

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsRunProcess

Base classes

QObject

Methods

dialogGone

processError

processExit

stderrAvailable

stdoutAvailable

Static Methods

create

splitCommand

Splits the string command into a list of tokens, and returns the list.

class qgis.core.QgsRunProcess[source]

Bases: QObject

static create(action: str | None, capture: bool) QgsRunProcess | None[source]
Parameters:
Return type:

Optional[QgsRunProcess]

dialogGone(self)[source]
processError(self, a0: QProcess.ProcessError)[source]
Parameters:

a0 (QProcess.ProcessError)

processExit(self, a0: int, a1: QProcess.ExitStatus)[source]
Parameters:
  • a0 (int)

  • a1 (QProcess.ExitStatus)

static splitCommand(command: str | None) list[str][source]

Splits the string command into a list of tokens, and returns the list.

Tokens with spaces can be surrounded by double quotes; three consecutive double quotes represent the quote character itself.

Added in version 3.18.

Parameters:

command (Optional[str])

Return type:

list[str]

stderrAvailable(self)[source]
stdoutAvailable(self)[source]