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  · 

Position

The Position element holds positional data at a particular point in time, such as coordinate (longitude, latitude, altitude) and speed. More...

Inherits QtObject

This type was introduced in Qt Location 5.0.

Properties

Detailed Description

The Position element holds values related to geographic location such as a coordinate (longitude, latitude, and altitude), the timestamp when the Position was obtained, the speed at that time, and the accuracy of the data.

Primarily, it is used in the position property of a PositionSource, as the basic unit of data available from the system location data source.

Not all properties of a Position object are necessarily valid or available (for example latitude and longitude may be valid, but speed update has not been received or set manually). As a result, corresponding "valid" properties are available (for example coordinate and longitudeValid, latitudeValid etc) to discern whether the data is available and valid in this position update.

Position elements are read-only and can only be produced by a PositionSource.

Example Usage

See the example given for the PositionSource element, or the Flickr example application.

See also PositionSource and Coordinate.

Property Documentation

read-onlyaltitudeValid : bool

This property is true if coordinate's altitude has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).

See also coordinate.


read-onlycoordinate : Coordinate

This property holds the latitude, longitude, and altitude value of the Position.

It is a read-only property.

Note: due to its inherent changing nature, the coordinateChanged() signal is emitted also when the values of the coordinate change, which enables easier data binding to Coordinate element instead of directly connecting to for example its latitude and longitude.

See also longitudeValid, latitudeValid, and altitudeValid.


horizontalAccuracy : qreal

This property holds the horizontal accuracy of the coordinate (in meters).

See also horizontalAccuracyValid and coordinate.


read-onlyhorizontalAccuracyValid : bool

This property is true if horizontalAccuracy has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).

See also horizontalAccuracy.


read-onlylatitudeValid : bool

This property is true if coordinate's latitude has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).

See also coordinate.


read-onlylongitudeValid : bool

This property is true if coordinate's longitude has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).

See also coordinate.


read-onlyspeed : double

This property holds the value of speed (groundspeed, meters / second).

It is a read-only property.

See also speedValid and coordinate.


read-onlyspeedValid : bool

This property is true if speed has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).

See also speed.


read-onlytimestamp : date

This property holds the timestamp when this position was received. If the property has not been set, it is invalid.

It is a read-only property.


verticalAccuracy : qreal

This property holds the vertical accuracy of the coordinate (in meters).

See also verticalAccuracyValid and coordinate.


read-onlyverticalAccuracyValid : bool

This property is true if verticalAccuracy has been set (to indicate whether that data has been received or not, as every update does not necessarily contain all data).

See also verticalAccuracy.


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