QmlSensors QML Type
The QmlSensors singleton provides the module API. More...
Import Statement: | import QtSensors 5.11 |
Since: | QtSensors 5.0 |
Methods
- string defaultSensorForType(type)
- list<string> sensorTypes()
- list<string> sensorsForType(type)
Detailed Description
The QmlSensors singleton provides the module API.
This element cannot be directly created. It can only be accessed via a namespace import.
import QtSensors 5.11 import QtSensors 5.11 as Sensors ... Component.onCompleted: { var types = Sensors.QmlSensors.sensorTypes(); console.log(types.join(", ")); }
Method Documentation
Returns the default sensor identifier that has been registered for type.
Please see QSensor::defaultSensorForType() for information.
Returns a list of the sensor types that have been registered.
Please see QSensor::sensorTypes() for information.
Returns a list of the sensor identifiers that have been registered for type.
Please see QSensor::sensorsForType() for information.
© 2021 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.