PySide6.QtRemoteObjects.QRemoteObjectPendingCallWatcher

class QRemoteObjectPendingCallWatcher

提供了一个基于QObject的API,用于监视QRemoteObjectPendingCall更多

PySide6.QtRemoteObjects.QRemoteObjectPendingCallWatcher 的继承图

概要

方法

信号

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

QRemoteObjectPendingCallWatcher 提供了一个信号,指示当 QRemoteObjectPendingCall 完成时,允许方便、非阻塞地处理调用。

__init__(call[, parent=None])
Parameters:
finished(self)
Parameters:

selfQRemoteObjectPendingCallWatcher

当远程调用完成时,会发出此信号。self 是指向发出信号的观察者对象的指针。完成的调用将包括一个返回值或错误。

waitForFinished()

阻塞直到远程调用完成。