IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QSensorPluginInterface Class

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QSensorPluginInterface Class

  • Header: QSensorPluginInterface

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Sensors)

    target_link_libraries(mytarget PRIVATE Qt6::Sensors)

  • qmake: QT += sensors

  • Group: QSensorPluginInterface is part of sensors_backend

Detailed Description

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

See Also

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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+