Qt has had a robust porting layer for device sensors for several years, starting with the Qt Mobility libraries meant to facilitate software development for cell phones. As Qt continued to evolve, support for sensors was added to Qt Quick, and the list of supported sensors grew. Today, Qt supports the following sensors:
An accelerometer is supported through the
Accelerometer
typeAn altimeter is supported through the
Altimeter
typeAn ambient light sensor is supported through the
AmbientLightSensor
andLightSensor
typesAn ambient temperature sensor is supported through the
AmbientTemperatureSensor
typeA compass is supported through the
Compass
typeA gyroscope is supported through the
Gyroscope
typeWhether or not the device is in a holster is determined through the
Holster
typeProximity to the device's screen is determined through the
IRProximitySensor
andProximitySensor
typesAn ambient magnetic field is supported through the
Magnetometer
typeThe device's orientation is supported...