QSensorPluginInterface Class
La clase `QSensorPluginInterface` es la interfaz virtual pura para los complementos de sensores. Más información...
| Encabezado: | #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 se implementa en los complementos de sensores para registrar los backends de sensores con QSensorManager.
Véase también «Creación deun complemento de sensor».
Documentación de las funciones de miembro
[pure virtual] void QSensorPluginInterface::registerSensors()
Esta función se invoca cuando se carga el complemento. El complemento debe registrar los backends de los sensores llamando a QSensorManager::registerBackend(). Los backends que utilicen otros sensores deben registrarse, en su lugar, en el método QSensorPluginInterface::sensorsChanged().
Véase también «Creación deun complemento 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.