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  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QAccelerometerReading Class Reference

The QAccelerometerReading class reports on linear acceleration along the X, Y and Z axes. More...

    #include <QAccelerometerReading>

Inherits QSensorReading.


Properties

  • x : const qreal
  • y : const qreal
  • z : const qreal

Public Functions

void setX ( qreal x )
void setY ( qreal y )
void setZ ( qreal z )
qreal x () const
qreal y () const
qreal z () const

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 1 public type inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QAccelerometerReading class reports on linear acceleration along the X, Y and Z axes.

QAccelerometerReading Units

The scale of the values is meters per second squared. The axes are arranged as follows.

A monoblock device sitting at rest, face up on a desk will experience a force of approximately 9.8 on the Z axis (ie. towards the roof). This is the proper acceleration the device experiences relative to freefall.


Property Documentation

x : const qreal

This property holds the acceleration on the X axis.

The scale of the values is meters per second squared.

Access functions:

qreal x () const

See also QAccelerometerReading Units.

y : const qreal

This property holds the acceleration on the Y axis.

The scale of the values is meters per second squared.

Access functions:

qreal y () const

See also QAccelerometerReading Units.

z : const qreal

This property holds the acceleration on the Z axis.

The scale of the values is meters per second squared.

Access functions:

qreal z () const

See also QAccelerometerReading Units.


Member Function Documentation

void QAccelerometerReading::setX ( qreal x )

Sets the acceleration on the X axis to x.

See also x().

void QAccelerometerReading::setY ( qreal y )

Sets the acceleration on the Y axis to y.

See also y().

void QAccelerometerReading::setZ ( qreal z )

Sets the acceleration on the Z axis to z.

See also z().

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 qtmobility-1.0
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