PySide6.QtRemoteObjects.QRemoteObjectRegistry

class QRemoteObjectRegistry

一个类,用于保存有关Qt远程对象网络上可用的Source对象的信息。更多

PySide6.QtRemoteObjects.QRemoteObjectRegistry 的继承图

概要

属性

方法

插槽

信号

静态函数

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

注册表是由节点本身持有的特殊源/副本对。它知道网络上所有其他可用的,并简化了连接到其他节点的过程。

注意

当使用from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。

property sourceLocationsᅟ: Dictionary with keys of type .QString and values of type QRemoteObjectSourceLocationInfo.

此属性保存注册表已知的源集合。

此属性是QRemoteObjectSourceLocations,它是QHash的typedef。每个已知的Source都作为QString键包含在哈希中,该键的对应值是主机节点的QRemoteObjectSourceLocationInfo。

Access functions:
addSource(entry)
Parameters:

entry – .std.pairQString,QRemoteObjectSourceLocationInfo

pushToRegistryIfNeeded()
static registerMetatypes()
remoteObjectAdded(entry)
Parameters:

entry – .std.pairQString,QRemoteObjectSourceLocationInfo

每当向注册表中添加新的源位置时,都会发出此信号。

entry 是一个 QRemoteObjectSourceLocation,它是 QPair 的 typedef。

另请参阅

remoteObjectRemoved()

remoteObjectRemoved(entry)
Parameters:

entry – .std.pairQString,QRemoteObjectSourceLocationInfo

每当从注册表中移除一个源位置时,就会发出此信号。

entry 是一个 QRemoteObjectSourceLocation,它是 QPair 的 typedef。

另请参阅

remoteObjectAdded()

removeSource(entry)
Parameters:

entry – .std.pairQString,QRemoteObjectSourceLocationInfo

sourceLocations()
Return type:

字典的键类型为 .QString,值类型为 QRemoteObjectSourceLocationInfo。

返回一个QRemoteObjectSourceLocations对象,其中包含注册表已知的所有源的名称和附加信息。

属性 sourceLocationsᅟ 的获取器。