QtROServerFactory Class
Qt Remote Objects ネットワーク上で利用可能なサーバーバックエンドに関する情報を保持するクラスです。詳細...
| ヘッダー: | #include <QtROServerFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake: | QT += remoteobjects |
関連する非会員
| void | qRegisterRemoteObjectsServer(const QString &id) |
関連する非会員
template <typename T> void qRegisterRemoteObjectsServer(const QString &id)
タイプ `T` に対して、リモートオブジェクトサーバー `id ` を登録します。
Qt Remote Objects に対してカスタムトランスポートプロトコルが必要な場合は、ここでクライアントおよびサーバーの実装を登録する必要があります。
注:この関数を 呼び出す時点で、T が完全に定義された型である必要があります。
この例では、クラス `CustomServerImpl ` を `"myprotocol"` として登録しています:
qRegisterRemoteObjectsServer<CustomServerImpl>(QStringLiteral("myprotocol"));これで、この新しいカスタムプロトコルを使用してノードをインスタンス化できるようになります:
QRemoteObjectNode client(QUrl(QStringLiteral("myprotocol:registry")));「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.