QRemoteObjectPendingCallWatcher Class
提供了一个基于QObject 的API,用于监听QRemoteObjectPendingCall 。更多内容...
| 标题: | #include <QRemoteObjectPendingCallWatcher> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake: | QT += remoteobjects |
| 继承自: | QObject 以及QRemoteObjectPendingCall |
公共函数
| bool | isFinished() const |
| void | waitForFinished() |
信号
| void | finished(QRemoteObjectPendingCallWatcher *self) |
详细说明
QRemoteObjectPendingCallWatcher 提供了一个信号,用于指示当QRemoteObjectPendingCall 完成时,从而能够方便地、以非阻塞方式处理该调用。
成员函数文档
[signal] void QRemoteObjectPendingCallWatcher::finished(QRemoteObjectPendingCallWatcher *self)
当远程调用结束时,会发出此信号。self 是发出该信号的监听器对象的指针。已完成的调用将包含一个 returnValue 或 error。
bool QRemoteObjectPendingCallWatcher::isFinished() const
如果远程调用已完成,则返回 true;否则返回 false。
已完成的调用将包含一个 returnValue 或 error。
void QRemoteObjectPendingCallWatcher::waitForFinished()
在远程调用完成之前保持阻塞状态。
© 2026 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.