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)
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.
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.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.