In questa pagina

QRemoteObjectRegistry Class

Una classe che contiene informazioni sugli oggetti Source disponibili sulla rete Qt Remote Objects. Per saperne di più...

Intestazione: #include <QRemoteObjectRegistry>
CMake: find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects)
qmake: QT += remoteobjects
Eredita da: QRemoteObjectReplica

Proprietà

Funzioni pubbliche

virtual ~QRemoteObjectRegistry() override
QBindable<QRemoteObjectSourceLocations> bindableSourceLocations() const
QRemoteObjectSourceLocations sourceLocations() const

Segnali

void remoteObjectAdded(const QRemoteObjectSourceLocation &entry)
void remoteObjectRemoved(const QRemoteObjectSourceLocation &entry)

Descrizione dettagliata

Il Registro è una coppia speciale di Source/Replica gestita dalla stessa node. È a conoscenza di tutte lealtre Sourcedisponibili sulla rete e semplifica il processo di connessione ad altre node.

Documentazione delle proprietà

[bindable read-only] sourceLocations : QRemoteObjectSourceLocations

Nota: questa proprietà supporta i binding QProperty.

Questa proprietà contiene l'insieme delle origini note al registro.

Questa proprietà è un QRemoteObjectSourceLocations, che è un typedef per QHash<QString, QRemoteObjectSourceLocationInfo>. Ogni sorgente nota è contenuta come chiave QString nell'hash, e il valore corrispondente a quella chiave è il QRemoteObjectSourceLocationInfo per il nodo host.

Funzioni di accesso:

QRemoteObjectSourceLocations sourceLocations() const

Documentazione delle funzioni membro

[override virtual noexcept] QRemoteObjectRegistry::~QRemoteObjectRegistry()

Distruttore per QRemoteObjectRegistry.

[signal] void QRemoteObjectRegistry::remoteObjectAdded(const QRemoteObjectSourceLocation &entry)

Questo segnale viene emesso ogni volta che una nuova posizione della fonte viene aggiunta al registro.

entry È un QRemoteObjectSourceLocation, un typedef per QPair<QString, QRemoteObjectSourceLocationInfo>.

Vedi anche remoteObjectRemoved().

[signal] void QRemoteObjectRegistry::remoteObjectRemoved(const QRemoteObjectSourceLocation &entry)

Questo segnale viene emesso ogni volta che una posizione sorgente viene rimossa dal Registro.

entry È un QRemoteObjectSourceLocation, un typedef per QPair<QString, QRemoteObjectSourceLocationInfo>.

Vedi anche ` remoteObjectAdded()`.

QRemoteObjectSourceLocations QRemoteObjectRegistry::sourceLocations() const

Restituisce un oggetto QRemoteObjectSourceLocations, che include il nome e ulteriori informazioni su tutte le fonti note al registro.

Nota: funzionegetter per la proprietà 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.