QSensorChangesInterface Class

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

Header: #include <QSensorChangesInterface>
qmake: QT += sensors
Since: Qt 5.1

Public Functions

virtual void sensorsChanged() = 0

Detailed Description

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

The QSensorChangesInterface class is implemented in sensor plugins to receive notification that registered sensor backends have changed.

See also Creating a sensor plugin.

Member Function Documentation

[pure virtual] void QSensorChangesInterface::sensorsChanged()

This function is called when the registered backends have changed. Any backends that depend on the presence of other sensors should be registered or unregistered in here.

See also Creating a sensor plugin.

© 2020 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.