PySide6.QtRemoteObjects.QRemoteObjectRegistryHost¶
- class QRemoteObjectRegistryHost¶
A (Host/Registry) node on a Qt Remote Objects network.
Details
The
QRemoteObjectRegistryHostclass provides an entry point to a QtRemoteObjects network. A network can be as simple as two Nodes, or an arbitrarily complex set of processes and devices.A
QRemoteObjectRegistryHosthas the same capability that aQRemoteObjectHosthas (which includes everything aQRemoteObjectNodesupports), and in addition is the owner of the Registry. AnyQRemoteObjectHostnode that connects to this Node will have all of their Source objects made available by the Registry.Nodes only support connection to one registry , calling
setRegistryUrlwhen a Registry is already set is considered an error. For something like a secure and insecure network (where different Registries would be applicable), the recommendation is to create separate Nodes to connect to each, in effect creating two independent Qt Remote Objects networks.Nodes may connect to each other directly using
connectToNode, or they can use theQRemoteObjectRegistryto simplify connections.The
QRemoteObjectRegistryis a special Replica available to every Node that connects to the Registry Url. It knows how to connect to every QRemoteObjectSource object on the network.See also
Synopsis¶
Methods¶
def
__init__()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__([registryAddress=QUrl()[, parent=None]])¶
Constructs a new
QRemoteObjectRegistryHostNode with the givenparent. RegistryHost Nodes have the same functionality asQRemoteObjectHostNodes, except rather than being able to connect to aQRemoteObjectRegistry, the provided Host QUrl (registryAddress) becomes the address of the registry for other Nodes to connect to.