En esta página

QRemoteObjectRegistry Class

Una clase que contiene información sobre los objetos «Source» disponibles en la red Qt Remote Objects. Más...

Encabezado: #include <QRemoteObjectRegistry>
CMake: find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects)
qmake: QT += remoteobjects
Heredan de: QRemoteObjectReplica

Propiedades

Funciones públicas

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

Señales

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

Descripción detallada

El Registro es un par especial de Fuente/Réplica que mantiene el propio « node ». Conoce todas lasdemás Fuentesdisponibles en la red y simplifica el proceso de conexión con otros « node».

Documentación de propiedades

[bindable read-only] sourceLocations : QRemoteObjectSourceLocations

Nota: Esta propiedad admite enlaces de tipo « QProperty ».

Esta propiedad contiene el conjunto de fuentes conocidas por el registro.

Esta propiedad es un `QRemoteObjectSourceLocations`, que es una definición de tipo (typedef) para QHash<QString, `QRemoteObjectSourceLocationInfo>`. Cada fuente conocida se incluye como una clave ` QString ` en el hash, y el valor correspondiente a esa clave es el `QRemoteObjectSourceLocationInfo` del nodo anfitrión.

Funciones de acceso:

QRemoteObjectSourceLocations sourceLocations() const

Documentación de funciones de miembro

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

Destructor para ` QRemoteObjectRegistry`.

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

Esta señal se emite cada vez que se añade una nueva ubicación de origen al registro.

entry Es un QRemoteObjectSourceLocation, una definición de tipo para QPair<QString, QRemoteObjectSourceLocationInfo>.

Véase también remoteObjectRemoved().

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

Esta señal se emite cada vez que se elimina una ubicación de origen del Registro.

entry Es un `QRemoteObjectSourceLocation`, una definición de tipo para ` QPair<QString, QRemoteObjectSourceLocationInfo>`.

Véase también remoteObjectAdded().

QRemoteObjectSourceLocations QRemoteObjectRegistry::sourceLocations() const

Devuelve un objeto QRemoteObjectSourceLocations, que incluye el nombre e información adicional de todas las fuentes conocidas por el registro.

Nota: Funcióngetter para la propiedad 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.