QtROClientFactory Class
Una clase que contiene información sobre los backends de cliente disponibles en la red Qt Remote Objects. Más...
| Encabezado: | #include <QtROClientFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake: | QT += remoteobjects |
Temas relacionados para no socios
| void | qRegisterRemoteObjectsClient(const QString &id) |
Usuarios no miembros relacionados
template <typename T> void qRegisterRemoteObjectsClient(const QString &id)
Registra el cliente 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 « CustomClientIo » como « "myprotocol" »:
qRegisterRemoteObjectsClient<CustomClientIo>(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 qRegisterRemoteObjectsServer.
© 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.