QRemoteObjectRegistry Class
Eine Klasse, die Informationen über Source-Objekte enthält, die im „ Qt Remote Objects “-Netzwerk verfügbar sind. Mehr...
| Header: | #include <QRemoteObjectRegistry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake: | QT += remoteobjects |
| Erbt von: | QRemoteObjectReplica |
Eigenschaften
- sourceLocations : QRemoteObjectSourceLocations
Öffentliche Funktionen
| virtual | ~QRemoteObjectRegistry() override |
| QBindable<QRemoteObjectSourceLocations> | bindableSourceLocations() const |
| QRemoteObjectSourceLocations | sourceLocations() const |
Signale
| void | remoteObjectAdded(const QRemoteObjectSourceLocation &entry) |
| void | remoteObjectRemoved(const QRemoteObjectSourceLocation &entry) |
Ausführliche Beschreibung
Die Registry ist ein spezielles Quell-/Replikat-Paar, das von einem „ node “ selbst verwaltet wird. Sie kennt alle anderen im Netzwerk verfügbaren Quellenund vereinfacht den Verbindungsaufbau zu anderen „ nodes“.
Dokumentation der Eigenschaften
[bindable read-only] sourceLocations : QRemoteObjectSourceLocations
Hinweis: Diese Eigenschaft unterstützt Bindungen vom Typ „ QProperty “.
Diese Eigenschaft enthält die Menge der der Registrierung bekannten Quellen.
Diese Eigenschaft ist ein `QRemoteObjectSourceLocations`, bei dem es sich um eine Typdefinition für ` QHash<QString, QRemoteObjectSourceLocationInfo>` handelt. Jede bekannte Quelle ist als Schlüssel ` QString ` im Hash enthalten, und der entsprechende Wert für diesen Schlüssel ist die `QRemoteObjectSourceLocationInfo` für den Hostknoten.
Zugriffsfunktionen:
| QRemoteObjectSourceLocations | sourceLocations() const |
Dokumentation zu den Mitgliedsfunktionen
[override virtual noexcept] QRemoteObjectRegistry::~QRemoteObjectRegistry()
Destruktor für „ QRemoteObjectRegistry “.
[signal] void QRemoteObjectRegistry::remoteObjectAdded(const QRemoteObjectSourceLocation &entry)
Dieses Signal wird ausgelöst, sobald ein neuer Quellort zur Registrierung hinzugefügt wird.
entry ist ein `QRemoteObjectSourceLocation`, ein `typedef` für ` QPair<QString, QRemoteObjectSourceLocationInfo>`.
Siehe auch ` remoteObjectRemoved()`.
[signal] void QRemoteObjectRegistry::remoteObjectRemoved(const QRemoteObjectSourceLocation &entry)
Dieses Signal wird immer dann ausgelöst, wenn ein Quellort aus der Registrierung entfernt wird.
entry ist ein `QRemoteObjectSourceLocation`, ein `typedef` für ` QPair<QString, QRemoteObjectSourceLocationInfo>`.
Siehe auch ` remoteObjectAdded()`.
QRemoteObjectSourceLocations QRemoteObjectRegistry::sourceLocations() const
Gibt ein QRemoteObjectSourceLocations-Objekt zurück, das den Namen und weitere Informationen zu allen in der Registrierung bekannten Quellen enthält.
Hinweis: Getter -Funktion für die Eigenschaft „sourceLocations“.
© 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.