QtROClientFactory Class
Una classe che contiene informazioni sui backend client disponibili sulla rete Qt Remote Objects. Per saperne di più...
| Intestazione: | #include <QtROClientFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake: | QT += remoteobjects |
Correlati per i non iscritti
| void | qRegisterRemoteObjectsClient(const QString &id) |
Non membri correlati
template <typename T> void qRegisterRemoteObjectsClient(const QString &id)
Registra il client Remote Objects id per il tipo T.
Se è necessario un protocollo di trasporto personalizzato per Qt Remote Objects, è necessario registrare qui l'implementazione del client e del server.
Nota: questa funzione richiede che T sia un tipo completamente definito nel punto in cui viene chiamata la funzione.
Questo esempio registra la classe ` CustomClientIo ` come ` "myprotocol"`:
qRegisterRemoteObjectsClient<CustomClientIo>(QStringLiteral("myprotocol"));A questo punto, è possibile istanziare i nodi utilizzando questo nuovo protocollo personalizzato:
QRemoteObjectNode client(QUrl(QStringLiteral("myprotocol:registry")));Vedi anche ` 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.