- class QRemoteObjectHost¶
A (Host) Node on a Qt Remote Objects network. More…
Synopsis¶
Properties¶
hostUrlᅟ
- Host address for the node
Methods¶
def
__init__()
Signals¶
def
hostUrlChanged()
Static functions¶
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
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 theQRemoteObjectRegistry
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.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.This property holds The host address for the node..
This is the address where source objects remoted by this node will reside.
- Access functions:
Signal
hostUrlChanged()
Constructs a new
QRemoteObjectHost
Node (i.e., a Node that supports exposing Source objects on the QtRO network) with the givenparent
. This constructor is meant specific to support QML in the future as it will not be available to connect to untilsetHostUrl
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 ofaddress
and the givenparent
. This overload is provided as a convenience for specifying a QObject parent without providing a registry address.See also
setHostUrl()
setRegistryUrl()
- __init__(address[, registryAddress=QUrl()[, allowedSchemas=QRemoteObjectHostBase.AllowedSchemas.BuiltInSchemasOnly[, parent=None]]])
- Parameters:
address –
QUrl
registryAddress –
QUrl
allowedSchemas –
AllowedSchemas
parent –
QObject
Constructs a new
QRemoteObjectHost
Node (i.e., a Node that supports exposing Source objects on the QtRO network) with addressaddress
. If set,registryAddress
will be used to connect to theQRemoteObjectRegistry
at the provided address. TheallowedSchemas
parameter is only needed (and should be set toAllowExternalRegistration
) if the schema of the url should be used as an External Schema by the registry.See also
setHostUrl()
setRegistryUrl()
- hostUrlChanged()¶
Notification signal of property
hostUrlᅟ
.- static setLocalServerOptions(options)¶
- Parameters:
options – Combination of
SocketOption
Sets the socket options for QLocalServer backends to
options
.It must be set before the
QRemoteObjectHost
object starts listening. It has no consequence for already listeningQRemoteObjectHost
objects orQRemoteObjectHost
objects that use different backends than QLocalServer.QRemoteObjectHost
objects start to listen during construction if the address argument is non-empty, otherwise when the address is set viasetHostUrl()
.See also
setHostUrl()
QRemoteObjectHost()