En esta página

QSensorChangesInterface Class

La clase QSensorChangesInterface es la interfaz virtual pura para los plugins de sensores. Más...

Cabecera: #include <QSensorChangesInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors

Funciones públicas

virtual void sensorsChanged() = 0

Descripción Detallada

La clase QSensorChangesInterface es implementada en plugins de sensores para recibir notificaciones de que los backends de sensores registrados han cambiado.

Vea también Creando un plugin de sensor.

Documentación de Funciones Miembro

[pure virtual] void QSensorChangesInterface::sensorsChanged()

Esta función es llamada cuando los backends registrados han cambiado. Cualquier backend que dependa de la presencia de otros sensores debe ser registrado o desregistrado aquí.

Ver también Crear un plugin de sensor.

© 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.