QTapReading Class ReferenceThe QTapReading class represents one reading from the tap sensor. More... #include <QTapReading> Inherits: QSensorReading. This class was introduced in Qt Mobility 1.0. Public Types
Properties
Public Functions
Additional Inherited Members
Detailed DescriptionThe QTapReading class represents one reading from the tap sensor. QTapReading UnitsThe tap sensor registers tap events along the 3 axes that originate from the phone. The axes are arranged as follows. By default it returns only double tap events. The QTapSensor::returnDoubleTapEvents property must be set to false to return individual tap events. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QTapReading::Undefined | 0 | This value means that the direction is unknown. |
QTapReading::X | 0x0001 | This flag is set if the tap was along the X axis. |
QTapReading::Y | 0x0002 | This flag is set if the tap was along the Y axis. |
QTapReading::Z | 0x0004 | This flag is set if the tap was along the Z axis. |
QTapReading::X_Pos | 0x0011 | This flag is set if the tap was towards the positive X direction. |
QTapReading::Y_Pos | 0x0022 | This flag is set if the tap was towards the positive Y direction. |
QTapReading::Z_Pos | 0x0044 | This flag is set if the tap was towards the positive Z direction. |
QTapReading::X_Neg | 0x0101 | This flag is set if the tap was towards the negative X direction. |
QTapReading::Y_Neg | 0x0202 | This flag is set if the tap was towards the negative Y direction. |
QTapReading::Z_Neg | 0x0404 | This flag is set if the tap was towards the negative Z direction. |
QTapReading::X_Both | 0x0111 | Equivalent to X_Pos|X_Neg. Returned by devices that cannot detect the direction of a tap. |
QTapReading::Y_Both | 0x0222 | Equivalent to Y_Pos|Y_Neg. Returned by devices that cannot detect the direction of a tap. |
QTapReading::Z_Both | 0x0444 | Equivalent to Z_Pos|Z_Neg. Returned by devices that cannot detect the direction of a tap. |
This property holds a value indicating if there was a single or double tap.
This property was introduced in Qt Mobility 1.0.
Access functions:
bool | isDoubleTap () const |
See also QTapReading Units.
This property holds the direction of the tap.
This property was introduced in Qt Mobility 1.0.
Access functions:
TapDirection | tapDirection () const |
See also QTapReading Units.
Sets the double tap status of the reading to doubleTap.
This function was introduced in Qt Mobility 1.0.
See also isDoubleTap().
Sets the tap direction to tapDirection.
This function was introduced in Qt Mobility 1.0.
See also tapDirection().
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.2 | |
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 ! |
Copyright © 2000-2012 - www.developpez.com