QRemoteObjectRegistry Class
保存Qt Remote Objects 网络中可用源对象信息的类。更多
头文件: | #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> 的类型定义。每个已知来源都以QString 键的形式包含在哈希值中,该键的相应值就是主机节点的 QRemoteObjectSourceLocationInfo。
成员函数文档
[override virtual noexcept]
QRemoteObjectRegistry::~QRemoteObjectRegistry()
QRemoteObjectRegistry 的 Destructor 。
[signal]
void QRemoteObjectRegistry::remoteObjectAdded(const QRemoteObjectSourceLocation &entry)
每当有新的源位置添加到注册表时,就会发出该信号。
entry 是 QRemoteObjectSourceLocation,是 < , QRemoteObjectSourceLocationInfo> 的类型定义。QPairQString
另请参阅 remoteObjectRemoved() 。
[signal]
void QRemoteObjectRegistry::remoteObjectRemoved(const QRemoteObjectSourceLocation &entry)
每当一个源位置从注册表中删除时,就会发出这个信号。
entry 是 QRemoteObjectSourceLocation,是 < , QRemoteObjectSourceLocationInfo> 的类型定义。QPairQString
另请参阅 remoteObjectAdded().
QRemoteObjectSourceLocations QRemoteObjectRegistry::sourceLocations() const
返回 QRemoteObjectSourceLocations 对象,其中包括注册表已知的所有源的名称和附加信息。
注: 属性 sourceLocations 的获取函数。
© 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.