QProcess¶

PyQt5.QtCore.QProcess

Inherits from QIODevice.

Description¶

TODO

Enums¶

ExitStatus

TODO

Member

Value

Description

CrashExit

TODO

TODO

NormalExit

TODO

TODO


InputChannelMode

TODO

Member

Value

Description

ForwardedInputChannel

TODO

TODO

ManagedInputChannel

TODO

TODO


ProcessChannel

TODO

Member

Value

Description

StandardError

TODO

TODO

StandardOutput

TODO

TODO


ProcessChannelMode

TODO

Member

Value

Description

ForwardedChannels

TODO

TODO

ForwardedErrorChannel

TODO

TODO

ForwardedOutputChannel

TODO

TODO

MergedChannels

TODO

TODO

SeparateChannels

TODO

TODO


ProcessError

TODO

Member

Value

Description

Crashed

TODO

TODO

FailedToStart

TODO

TODO

ReadError

TODO

TODO

Timedout

TODO

TODO

UnknownError

TODO

TODO

WriteError

TODO

TODO


ProcessState

TODO

Member

Value

Description

NotRunning

TODO

TODO

Running

TODO

TODO

Starting

TODO

TODO

Methods¶

__init__(parent: QObject = None)

TODO


arguments() → List[str]

TODO


atEnd() → bool

TODO


bytesAvailable() → int

TODO


bytesToWrite() → int

TODO


canReadLine() → bool

TODO


close()

TODO


closeReadChannel(ProcessChannel)

TODO


closeWriteChannel()

TODO


error() → ProcessError

TODO


@staticmethod
execute(str) → int

TODO


@staticmethod
execute(str, Iterable[str]) → int

TODO


exitCode() → int

TODO


exitStatus() → ExitStatus

TODO


inputChannelMode() → InputChannelMode

TODO


isSequential() → bool

TODO


kill()

TODO


@staticmethod
nullDevice() → str

TODO


open(mode: Union[OpenMode, OpenModeFlag] = ReadWrite) → bool

TODO


pid() → int

TODO


processChannelMode() → ProcessChannelMode

TODO


processEnvironment() → QProcessEnvironment

TODO


processId() → int

TODO


program() → str

TODO


readAllStandardError() → QByteArray

TODO


readAllStandardOutput() → QByteArray

TODO


readChannel() → ProcessChannel

TODO


readData(int) → bytes

TODO


setArguments(Iterable[str])

TODO


setInputChannelMode(InputChannelMode)

TODO


setProcessChannelMode(ProcessChannelMode)

TODO


setProcessEnvironment(QProcessEnvironment)

TODO


setProcessState(ProcessState)

TODO


setProgram(str)

TODO


setReadChannel(ProcessChannel)

TODO


setStandardErrorFile(str, mode: Union[OpenMode, OpenModeFlag] = Truncate)

TODO


setStandardInputFile(str)

TODO


setStandardOutputFile(str, mode: Union[OpenMode, OpenModeFlag] = Truncate)

TODO


setStandardOutputProcess(QProcess)

TODO


setupChildProcess()

TODO


setWorkingDirectory(str)

TODO


start(mode: Union[OpenMode, OpenModeFlag] = ReadWrite)

TODO


start(str, mode: Union[OpenMode, OpenModeFlag] = ReadWrite)

TODO


start(str, Iterable[str], mode: Union[OpenMode, OpenModeFlag] = ReadWrite)

TODO


startDetached() → (bool, int)

TODO


@staticmethod
startDetached(str) → bool

TODO


@staticmethod
startDetached(str, Iterable[str]) → bool

TODO


@staticmethod
startDetached(str, Iterable[str], str) → (bool, int)

TODO


state() → ProcessState

TODO


@staticmethod
systemEnvironment() → List[str]

TODO


terminate()

TODO


waitForBytesWritten(msecs: int = 30000) → bool

TODO


waitForFinished(msecs: int = 30000) → bool

TODO


waitForReadyRead(msecs: int = 30000) → bool

TODO


waitForStarted(msecs: int = 30000) → bool

TODO


workingDirectory() → str

TODO


writeData(bytes) → int

TODO

Signals¶

error()

TODO


error(ProcessError)

TODO


errorOccurred(ProcessError)

TODO


finished(int, ExitStatus)

TODO


readyReadStandardError()

TODO


readyReadStandardOutput()

TODO


started()

TODO


stateChanged(ProcessState)

TODO