Qt Remote Objects レジストリ
レジストリは、こうした接続を確立するためのより簡単な方法を提供します。 レジストリのネットワークに参加したいすべてのノードは、レジストリに接続します。レジストリ自体は特殊なソースオブジェクトであるため、ノードによってホストされます。レジストリへの接続は、QRemoteObjectNode またはQRemoteObjectHost のコンストラクタにレジストリの URL を渡すか、setRegistryUrl メソッドに URL を渡すだけで行えます。
レジストリは QtRO と緊密に統合されています。ソースが追加または削除されるたびに、その名前や URL はレジストリ内で自動的に更新されます。したがって、ノードがレジストリに接続されれば、他のノードに手動で接続する必要はありません。 ネットワーク上でオブジェクトをリクエストした際、そのオブジェクトをホストしているノードに接続されていない場合でも、レジストリは接続すべきURLを認識し、接続を開始します。接続が確立されると(目的のSourceを含む利用可能なオブジェクトのリストが渡されます)、リクエストされたReplicaの初期化プロセスが自動的に開始されます。
© 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.