QRemoteObjectPendingCall#
Encapsulates the result of an asynchronous method call. More…
Inherited by: QRemoteObjectPendingCallWatcher
Synopsis#
Functions#
- def - error()
- def - isFinished()
- def - returnValue()
- def - waitForFinished([timeout=30000])
Static functions#
- def - fromCompletedCall(returnValue)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
- class PySide6.QtRemoteObjects.QRemoteObjectPendingCall#
- PySide6.QtRemoteObjects.QRemoteObjectPendingCall(other) - Parameters:
 
- 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.
Returns the error, if any, from the remote call.
- static PySide6.QtRemoteObjects.QRemoteObjectPendingCall.fromCompletedCall(returnValue)#
- Parameters:
- returnValue – object 
- Return type:
 
- 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.
returnValue 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.