QtROServerFactory Class▲
-
Header: QtROServerFactory
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects)
-
qmake: QT += remoteobjects
Detailed Description▲
Related Non-Members▲
void qRegisterRemoteObjectsServer(const QString &id)▲
Registers the Remote Objects server 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.
This function requires that T is a fully defined type at the point where the function is called.
This example registers the class CustomServerImpl as "myprotocol":
qRegisterRemoteObjectsServer&
lt;CustomServerImpl&
gt;(QStringLiteral("myprotocol"
));
With this in place, you can now instantiate nodes using this new custom protocol:
QRemoteObjectNode client(QUrl(QStringLiteral("myprotocol:registry"
)));
See Also▲
See also qRegisterRemoteObjectsServer