本页内容

Qt Remote Objects C++ Classes

提供了一种易于使用的机制,用于在进程之间共享QObject 的属性、信号或插槽。更多内容...

命名空间

QtRemoteObjects

包含“远程对象”模块中使用的标识符,以及由副本编译器(repc)生成的代码中调用的某些函数

类

QAbstractItemModelReplica

作为基于 QAbstractItemModel 的源对象副本的便捷类

QRemoteObjectAbstractPersistedStore

该类提供了一些方法,用于将副本的 PROP 值设置为上次使用该副本时的值

QRemoteObjectDynamicReplica

一个动态实例化的副本

QRemoteObjectHost

Qt Remote Objects 网络上的(主机)节点

QRemoteObjectHostBase

Host和RegistryHost类共有的基础功能

QRemoteObjectNode

Qt Remote Objects 网络上的一个节点

QRemoteObjectPendingCall

封装异步方法调用的结果

QRemoteObjectPendingCallWatcher

提供基于 QObject 的 API 用于监视 QRemoteObjectPendingCall

QRemoteObjectPendingReply

QRemoteObjectPendingCall 的模板化版本

QRemoteObjectRegistry

一个存储Qt Remote Objects 网络上可用源对象信息的类

QRemoteObjectRegistryHost

Qt Remote Objects 网络上的 (主机/注册表) 节点

QRemoteObjectReplica

一个与 Qt Remote Objects 网络上的 Qt API 进行交互(但未实现该 API)的类

QtROClientFactory

一个用于存储Qt Remote Objects 网络上可用客户端后端信息的类

QtROServerFactory

一个存储Qt Remote Objects 网络上可用服务器后端信息的类

详细说明

若要使用 CMake 链接该模块,请在您的cmake 文件中添加以下行:

find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(directconnectserver PRIVATE Qt6::RemoteObjects)

若要通过qmake 链接该模块,请在您的.pro 文件中添加以下行:

QT       += remoteobjects

有关更多信息,请参阅《Qt Remote Objects 入门指南》。

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