QRemoteObjectPendingCallWatcher Class

提供基于QObject 的应用程序接口,用于观看QRemoteObjectPendingCall...... 更多

头文件: #include <QRemoteObjectPendingCallWatcher>
CMake: find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects)
qmake: QT += remoteobjects
继承:QObjectQRemoteObjectPendingCall

公共函数

bool isFinished() const
void waitForFinished()

信号

void finished(QRemoteObjectPendingCallWatcher *self)

详细说明

QRemoteObjectPendingCallWatcher 提供了一个信号,指示QRemoteObjectPendingCall 调用完成的时间,从而可以方便、非阻塞地处理调用。

成员函数文档

[signal] void QRemoteObjectPendingCallWatcher::finished(QRemoteObjectPendingCallWatcher *self)

self 是指向发出信号的观察者对象的指针。完成的调用将包括返回值或错误。

bool QRemoteObjectPendingCallWatcher::isFinished() const

如果远程调用已完成,则返回 true,否则返回 false。

完成的调用将包括返回值或错误。

void QRemoteObjectPendingCallWatcher::waitForFinished()

阻塞,直到远程呼叫结束。

© 2025 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.