Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QtMobility.sensors 1.x

Overview

This is the legacy QML import. It exists for compatibility with the QtMobiltiy 1.2 release and is not recommended for new applications.

The QtMobility.sensors import has the Qt Sensors C++ classes directly exported into the QML environment. This causes some limitations due to the use of types that do not work in the QML environment. See below for a list of the known limitations.

See Qt Sensors for more information about the Sensors API.

QtMobility.sensors QML Limitations

The following limitations affect all versions of the QtMobility.sensors import.

  1. The QSensor::sensorid property cannot be set because QML does not support QByteArray. This means that it is not possible to specify a particular sensor when two or more have been registered with the same type.
  2. The QSensor::availableDataRates property cannot be used because QML does not support qrangelist.
  3. The QSensor::outputRanges property cannot be used because QML does not support qoutputrangelist.
  4. The QLightSensor::fieldOfView property cannot be used because QML cannot access dynamic properties.
  5. The QMagnetometer::returnGeoValues property cannot be used because QML cannot access dynamic properties.
  6. The QRotationSensor::hasZ property cannot be used because QML cannot access dynamic properties.
  7. The QTapSensor::returnDoubleTapEvents property cannot be used because QML cannot access dynamic properties.

QML Sensor Elements

These elements represent specific types of sensors.

QtMobility.sensors1::QtMobility.sensors1::Accelerometer

The Accelerometer element reports on linear acceleration along the X, Y and Z axes.

QtMobility.sensors1::QtMobility.sensors1::AmbientLightSensor

The AmbientLightSensor element repors on ambient lighting conditions.

QtMobility.sensors1::QtMobility.sensors1::Compass

The Compass element reports on heading using magnetic north as a reference.

QtMobility.sensors1::QtMobility.sensors1::Gyroscope

The Gyroscope element reports on rotational acceleration around the X, Y and Z axes.

QtMobility.sensors1::QtMobility.sensors1::IRProximitySensor

The IRProximitySensor element reports on infra-red reflectance values.

QtMobility.sensors1::QtMobility.sensors1::LightSensor

The LightSensor element reports on light levels using LUX.

QtMobility.sensors1::QtMobility.sensors1::Magnetometer

The Magnetometer element reports on magnetic field strength along the Z, Y and Z axes.

QtMobility.sensors1::QtMobility.sensors1::OrientationSensor

The OrientationSensor element reports device orientation.

QtMobility.sensors1::QtMobility.sensors1::ProximitySensor

The ProximitySensor element reports on object proximity.

QtMobility.sensors1::QtMobility.sensors1::RotationSensor

The RotationSensor element reports on device rotation around the X, Y and Z axes.

QtMobility.sensors1::QtMobility.sensors1::TapSensor

The TapSensor element reports tap and double tap events along the X, Y and Z axes.

QML Reading Elements

The data from a sensor comes through a reading class.

QtMobility.sensors1::AccelerometerReading

The AccelerometerReading element holds the most recent Accelerometer reading.

QtMobility.sensors1::AmbientLightReading

The AmbientLightReading element holds the most AmbientLightSensor reading.

QtMobility.sensors1::CompassReading

The CompassReading element holds the most recent Compass reading.

QtMobility.sensors1::GyroscopeReading

The GyroscopeReading element holds the most recent Gyroscope reading.

QtMobility.sensors1::IRProximityReading

The IRProximityReading element holds the most recent IR proximity reading.

QtMobility.sensors1::LightReading

The LightReading element holds the most recent LightSensor reading.

QtMobility.sensors1::MagnetometerReading

The MagnetometerReading element holds the most recent Magnetometer reading.

QtMobility.sensors1::OrientationReading

The OrientationReading element holds the most recent OrientationSensor reading.

QtMobility.sensors1::ProximityReading

The ProximityReading element holds the most recent ProximitySensor reading.

QtMobility.sensors1::RotationReading

The RotationReading element holds the most recent RotationSensor reading.

QtMobility.sensors1::TapReading

The TapReading element holds the most recent TapSensor reading.

Alphabetical Listing of QML Elements

QtMobility.sensors1::AccelerometerReading

The AccelerometerReading element holds the most recent Accelerometer reading.

QtMobility.sensors1::AmbientLightReading

The AmbientLightReading element holds the most AmbientLightSensor reading.

QtMobility.sensors1::CompassReading

The CompassReading element holds the most recent Compass reading.

QtMobility.sensors1::GyroscopeReading

The GyroscopeReading element holds the most recent Gyroscope reading.

QtMobility.sensors1::IRProximityReading

The IRProximityReading element holds the most recent IR proximity reading.

QtMobility.sensors1::LightReading

The LightReading element holds the most recent LightSensor reading.

QtMobility.sensors1::MagnetometerReading

The MagnetometerReading element holds the most recent Magnetometer reading.

QtMobility.sensors1::OrientationReading

The OrientationReading element holds the most recent OrientationSensor reading.

QtMobility.sensors1::ProximityReading

The ProximityReading element holds the most recent ProximitySensor reading.

QtMobility.sensors1::QtMobility.sensors1::Accelerometer

The Accelerometer element reports on linear acceleration along the X, Y and Z axes.

QtMobility.sensors1::QtMobility.sensors1::AmbientLightSensor

The AmbientLightSensor element repors on ambient lighting conditions.

QtMobility.sensors1::QtMobility.sensors1::Compass

The Compass element reports on heading using magnetic north as a reference.

QtMobility.sensors1::QtMobility.sensors1::Gyroscope

The Gyroscope element reports on rotational acceleration around the X, Y and Z axes.

QtMobility.sensors1::QtMobility.sensors1::IRProximitySensor

The IRProximitySensor element reports on infra-red reflectance values.

QtMobility.sensors1::QtMobility.sensors1::LightSensor

The LightSensor element reports on light levels using LUX.

QtMobility.sensors1::QtMobility.sensors1::Magnetometer

The Magnetometer element reports on magnetic field strength along the Z, Y and Z axes.

QtMobility.sensors1::QtMobility.sensors1::OrientationSensor

The OrientationSensor element reports device orientation.

QtMobility.sensors1::QtMobility.sensors1::ProximitySensor

The ProximitySensor element reports on object proximity.

QtMobility.sensors1::QtMobility.sensors1::RotationSensor

The RotationSensor element reports on device rotation around the X, Y and Z axes.

QtMobility.sensors1::QtMobility.sensors1::Sensor

The Sensor element serves as a base type for sensors.

QtMobility.sensors1::QtMobility.sensors1::TapSensor

The TapSensor element reports tap and double tap events along the X, Y and Z axes.

QtMobility.sensors1::RotationReading

The RotationReading element holds the most recent RotationSensor reading.

QtMobility.sensors1::SensorReading

The SensorReading element serves as a base type for sensor readings.

QtMobility.sensors1::TapReading

The TapReading element holds the most recent TapSensor reading.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web