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

为观察 QRemoteObjectPendingCall 提供基于 QObject 的 API

QRemoteObjectPendingReply

QRemoteObjectPendingCall 的模板版本

QRemoteObjectRegistry

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

QRemoteObjectRegistryHost

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

QRemoteObjectReplica

与远程对象网络上的 Qt 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 入门

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