A class holding information about client backends available on the Qt Remote Objects network. More...
Header: | #include <QtROClientFactory> |
qmake: | QT += remoteobjects |
ClientIoDevice * | create(const QUrl &url, QObject *parent = nullptr) |
bool | isValid(const QUrl &url) |
void | registerType(const QString &id) |
QtROClientFactory * | instance() |
void | qRegisterRemoteObjectsClient(const QString &id) |
A class holding information about client backends available on the Qt Remote Objects network.
[static]
QtROClientFactory *QtROClientFactory::instance()Registers the Remote Objects client id for the type T
.
If you need a custom transport protocol for Qt Remote Objects, you need to register the client & server implementation here.
Note: This function requires that T
is a fully defined type at the point where the function is called.
This example registers the class CustomClientIo
as "myprotocol"
:
qRegisterRemoteObjectsClient<CustomClientIo>(QStringLiteral("myprotocol"));
With this in place, you can now instantiate nodes using this new custom protocol:
QRemoteObjectNode client(QUrl(QStringLiteral("myprotocol:registry")));
See also qRegisterRemoteObjectsServer.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: