QRemoteObjectHost¶
A (Host) Node on a Qt Remote Objects network. More…
Detailed Description¶
The QRemoteObjectHost
class 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.
QRemoteObjectHosts have the same capabilities as QRemoteObjectNodes, but they can also be connected to and can share source objects on the network.
Nodes may connect to each other directly using connectToNode
, or they can use the QRemoteObjectRegistry
to simplify connections.
The QRemoteObjectRegistry
is 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.
- class PySide6.QtRemoteObjects.QRemoteObjectHost([parent=None])¶
PySide6.QtRemoteObjects.QRemoteObjectHost(address, parent)
PySide6.QtRemoteObjects.QRemoteObjectHost(address[, registryAddress=QUrl()[, allowedSchemas=QRemoteObjectHostBase.AllowedSchemas.BuiltInSchemasOnly[, parent=None]]])
- Parameters
address –
PySide6.QtCore.QUrl
allowedSchemas –
AllowedSchemas
registryAddress –
PySide6.QtCore.QUrl
parent –
PySide6.QtCore.QObject
Constructs a new QRemoteObjectHost
Node (i.e., a Node that supports exposing Source objects on the QtRO network) with the given parent
. This constructor is meant specific to support QML in the future as it will not be available to connect to until setHostUrl
is called.
See also
setHostUrl()
setRegistryUrl()
Constructs a new QRemoteObjectHost
Node (i.e., a Node that supports exposing Source objects on the QtRO network) with a url of address
and the given parent
. This overload is provided as a convenience for specifying a QObject
parent without providing a registry address.
See also
setHostUrl()
setRegistryUrl()
Constructs a new QRemoteObjectHost
Node (i.e., a Node that supports exposing Source objects on the QtRO network) with address address
. If set, registryAddress
will be used to connect to the QRemoteObjectRegistry
at the provided address. The allowedSchemas
parameter is only needed (and should be set to AllowExternalRegistration
) if the schema of the url should be used as an External Schema by the registry.
See also
setHostUrl()
setRegistryUrl()
- PySide6.QtRemoteObjects.QRemoteObjectHost.hostUrlChanged()¶
© 2022 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.