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  · 

QML Position Element

The Position element holds various positional data, such as coordinate (longitude, latitude, altitude) and speed. More...

  • List of all members, including inherited members
  • Properties

    Detailed Description

    The Position element holds various positional data, such as coordinate, (longitude, latitude, and altitude) and speed, as well as timestamp.

    Not all of these are always available (e.g. latitude and longitude may be valid, but speed update has not been received or set manually), and hence there are corresponding validity attributes which can be used when writing applications.

    At the time being the Position element is a read-only element (meaning it does not have exposed write accessors), primarily used by PositionSource.

    The Position element is part of the QtMobility.location 1.1 module.

    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).

    This documentation was introduced in Qt Mobility Mobility 1.2.

    See also coordinate.


    read-onlycoordinate : Coordinate

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

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

    This documentation was introduced in Qt Mobility Mobility 1.2.

    See also longitudeValid, latitudeValid, and altitudeValid.


    read-onlyhorizontalAccuracy : qreal

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

    This documentation was introduced in Qt Mobility Mobility 1.2.

    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).

    This documentation was introduced in Qt Mobility Mobility 1.2.

    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).

    This documentation was introduced in Qt Mobility Mobility 1.2.

    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).

    This documentation was introduced in Qt Mobility Mobility 1.2.

    See also coordinate.


    read-onlyspeed : double

    This property holds the value of speed (groundspeed, metres / second). Currently a read-only property.

    This documentation was introduced in Qt Mobility Mobility 1.2.

    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).

    This documentation was introduced in Qt Mobility Mobility 1.2.

    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.

    This documentation was introduced in Qt Mobility Mobility 1.2.


    read-onlyverticalAccuracy : qreal

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

    This documentation was introduced in Qt Mobility Mobility 1.2.

    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).

    This documentation was introduced in Qt Mobility Mobility 1.2.

    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 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 !
     
     
     
     
    Partenaires

    Hébergement Web