QtROServerFactory Class
Una clase que contiene información sobre los servidores de fondo disponibles en la red Qt Remote Objects. Más...
| Encabezado: | #include <QtROServerFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake: | QT += remoteobjects |
Temas relacionados para no socios
| void | qRegisterRemoteObjectsServer(const QString &id) |
Usuarios no miembros relacionados
template <typename T> void qRegisterRemoteObjectsServer(const QString &id)
Registra el servidor de objetos remotos id para el tipo T.
Si necesitas un protocolo de transporte personalizado para Qt Remote Objects, debes registrar aquí la implementación del cliente y del servidor.
Nota: Esta función requiere que « T » sea un tipo completamente definido en el momento en que se llama a la función.
Este ejemplo registra la clase CustomServerImpl como "myprotocol":
qRegisterRemoteObjectsServer<CustomServerImpl>(QStringLiteral("myprotocol"));Una vez hecho esto, ya puedes instanciar nodos utilizando este nuevo protocolo personalizado:
QRemoteObjectNode client(QUrl(QStringLiteral("myprotocol:registry")));Véase también ` qRegisterRemoteObjectsClient`.
© 2026 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.