QmlSensors QML Type The QmlSensors singleton provides the module API. More...  
 Import Statement:
 import QtSensors 5.14


 Since:
 QtSensors 5.0


 List of all members, including inherited members  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  string defaultSensorForType(type) Returns the default sensor identifier that has been registered for type. Please see QSensor8b7c:f320:99b9:690f:4595:cd17:293a:c069ultSensorForType() for information.  list<string> sensorTypes() Returns a list of the sensor types that have been registered. Please see QSensor8b7c:f320:99b9:690f:4595:cd17:293a:c069sensorTypes() for information.  list<string> sensorsForType(type) Returns a list of the sensor identifiers that have been registered for type. Please see QSensor8b7c:f320:99b9:690f:4595:cd17:293a:c069sensorsForType() for information.

    
{'path': 'public/docs/qt~5.14/qml-qtsensors-qmlsensors.html', 'source': 'DevDocs.IO'}