QSensorPluginInterface Class
A classe QSensorPluginInterface é a interface virtual pura para plug-ins de sensores. Mais...
| Cabeçalho: | #include <QSensorPluginInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
Funções públicas
| virtual void | registerSensors() = 0 |
Descrição detalhada
A classe QSensorPluginInterface é implementada em plug-ins de sensores para registrar back-ends de sensores com QSensorManager.
Veja também Criação de um plug-in de sensor.
Documentação das funções de membro
[pure virtual] void QSensorPluginInterface::registerSensors()
Essa função é chamada quando o plug-in é carregado. O plug-in deve registrar os back-ends dos sensores chamando a função QSensorManager::registerBackend(). Quaisquer back-ends que utilizem outros sensores devem ser registrados no método QSensorPluginInterface::sensorsChanged(), em vez disso.
Veja também Criando um plug-in 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.