QSensorPluginInterface Class
La clase QSensorPluginInterface es la interfaz virtual pura para los plugins de sensores. Más...
| Cabecera: | #include <QSensorPluginInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors)target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
Funciones públicas
| virtual void | registerSensors() = 0 |
Descripción Detallada
La clase QSensorPluginInterface es implementada en plugins de sensores para registrar backends de sensores con QSensorManager.
Vea también Creando un plugin de sensor.
Documentación de Funciones Miembro
[pure virtual] void QSensorPluginInterface::registerSensors()
Esta función es llamada cuando el plugin es cargado. El plugin debería registrar los sensores llamando a QSensorManager::registerBackend(). Cualquier backend que utilice otros sensores debería ser registrado en el método QSensorPluginInterface::sensorsChanged().
Ver también Creando 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.