Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

QSensorPluginInterface Class

The QSensorPluginInterface class is the pure virtual interface to sensor plugins. More...

Header: #include <QSensorPluginInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
Since: Qt 5.1

Public Functions

virtual void registerSensors() = 0

Detailed Description

The QSensorPluginInterface class is implemented in sensor plugins to register sensor backends with QSensorManager.

See also Creating a sensor plugin.

Member Function Documentation

[pure virtual] void QSensorPluginInterface::registerSensors()

This function is called when the plugin is loaded. The plugin should register sensor backends by calling QSensorManager::registerBackend(). Any backends that utilise other sensors should be registered in the QSensorPluginInterface::sensorsChanged() method instead.

See also Creating a sensor plugin.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded