QRemoteObjectPendingCall

Encapsulates the result of an asynchronous method call. More

Inheritance diagram of PySide6.QtRemoteObjects.QRemoteObjectPendingCall

Inherited by: QRemoteObjectPendingCallWatcher

Synopsis

Functions

Static functions

Detailed Description

class PySide6.QtRemoteObjects.QRemoteObjectPendingCall

PySide6.QtRemoteObjects.QRemoteObjectPendingCall(other)

Parameters

otherPySide6.QtRemoteObjects.QRemoteObjectPendingCall

PySide6.QtRemoteObjects.QRemoteObjectPendingCall.Error

This enum type specifies the possible error values for a remote call:

Constant

Description

QRemoteObjectPendingCall.NoError

No error occurred.

QRemoteObjectPendingCall.InvalidMessage

The default error state prior to the remote call finishing.

PySide6.QtRemoteObjects.QRemoteObjectPendingCall.error()
Return type

Error

Returns the error, if any, from the remote call.

static PySide6.QtRemoteObjects.QRemoteObjectPendingCall.fromCompletedCall(returnValue)
Parameters

returnValue – object

Return type

PySide6.QtRemoteObjects.QRemoteObjectPendingCall

PySide6.QtRemoteObjects.QRemoteObjectPendingCall.isFinished()
Return type

bool

Returns true if the remote call has finished, false otherwise.

A finished call will include a returnValue or error .

PySide6.QtRemoteObjects.QRemoteObjectPendingCall.returnValue()
Return type

object

Returns the return value of the remote call.

will only be valid when the remote call has finished and there are no error s.

PySide6.QtRemoteObjects.QRemoteObjectPendingCall.waitForFinished([timeout=30000])
Parameters

timeout – int

Return type

bool

Blocks for up to timeout milliseconds, until the remote call has finished.

Returns true on success, false otherwise.