QRemoteObjectRegistry Class
一个类,用于存储Qt Remote Objects 网络上可用的Source对象的相关信息。更多内容...
| 头文件: | #include <QRemoteObjectRegistry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake: | QT += remoteobjects |
| 继承自: | QRemoteObjectReplica |
属性
- sourceLocations : QRemoteObjectSourceLocations
公共函数
| virtual | ~QRemoteObjectRegistry() override |
| QBindable<QRemoteObjectSourceLocations> | bindableSourceLocations() const |
| QRemoteObjectSourceLocations | sourceLocations() const |
信号
| void | remoteObjectAdded(const QRemoteObjectSourceLocation &entry) |
| void | remoteObjectRemoved(const QRemoteObjectSourceLocation &entry) |
属性文档
[bindable read-only] sourceLocations : QRemoteObjectSourceLocations
注意:此 属性支持QProperty 绑定。
该属性保存注册表所知的源集合。
该属性是一个 QRemoteObjectSourceLocations,它是QHash<QString, QRemoteObjectSourceLocationInfo> 的 typedef。每个已知的源都作为QString 键包含在哈希表中,该键的对应值即为主节点的 QRemoteObjectSourceLocationInfo。
访问函数:
| QRemoteObjectSourceLocations | sourceLocations() const |
成员函数文档
[override virtual noexcept] QRemoteObjectRegistry::~QRemoteObjectRegistry()
QRemoteObjectRegistry 的析构函数。
[signal] void QRemoteObjectRegistry::remoteObjectAdded(const QRemoteObjectSourceLocation &entry)
每当向注册表添加新的源位置时,都会发出此信号。
entry 它是一个 QRemoteObjectSourceLocation,这是QPair<QString>、QRemoteObjectSourceLocationInfo 的 typedef。
另请参阅 remoteObjectRemoved()。
[signal] void QRemoteObjectRegistry::remoteObjectRemoved(const QRemoteObjectSourceLocation &entry)
每当从注册表中删除一个源位置时,都会发出此信号。
entry 是 QRemoteObjectSourceLocation,它是QPair<QString, QRemoteObjectSourceLocationInfo> 的 typedef。
另请参阅 remoteObjectAdded()。
QRemoteObjectSourceLocations QRemoteObjectRegistry::sourceLocations() const
返回一个 QRemoteObjectSourceLocations 对象,其中包含注册表已知的所有源的名称及其他信息。
注意: 这是 sourceLocations 属性的获取 函数。
© 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.