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  · 

QGeoPlace Class Reference

The QGeoPlace class represents basic information about a place. More...

 #include <QGeoPlace>

Inherited by: QLandmark.

This class was introduced in Qt Mobility 1.1.

Public Functions

QGeoPlace ()
QGeoPlace ( const QGeoPlace & other )
virtual ~QGeoPlace ()
QGeoAddress address () const
QGeoCoordinate coordinate () const
bool isLandmark () const
void setAddress ( const QGeoAddress & address )
void setCoordinate ( const QGeoCoordinate & coordinate )
void setViewport ( const QGeoBoundingBox & viewport )
QGeoBoundingBox viewport () const
bool operator!= ( const QGeoPlace & other ) const
QGeoPlace & operator= ( const QGeoPlace & other )
bool operator== ( const QGeoPlace & other ) const

Detailed Description

The QGeoPlace class represents basic information about a place.

A QGeoPlace contains a coordinate and the corresponding address, along with an optional bounding box describing the minimum viewport necessary to display the entirety of the place.

A QGeoPlace may contain an QLandmark instance. The isLandmark() function can be used to determine if this is the case, and the QLandmark(const QGeoPlace &place) constructor can be used to restore access to the landmark data.

For example:

 QGeoPlace p;
 QLandmark l;
 ...
 if (p.isLandmark())
     l = QLandmark(p)

Member Function Documentation

QGeoPlace::QGeoPlace ()

Constructs an empty place object.

QGeoPlace::QGeoPlace ( const QGeoPlace & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.1.

QGeoPlace::~QGeoPlace () [virtual]

Destroys this place.

QGeoAddress QGeoPlace::address () const

Returns the address of this place.

This function was introduced in Qt Mobility 1.1.

See also setAddress().

QGeoCoordinate QGeoPlace::coordinate () const

Returns the coordinate that this place is located at.

This function was introduced in Qt Mobility 1.1.

See also setCoordinate().

bool QGeoPlace::isLandmark () const

This function returns whether this QGeoPlace instance contain all of the information required to construct a QLandmark instance.

If so, the QLandmark(const QGeoPlace &place) constructor can be used to restore access to the landmark data.

This function was introduced in Qt Mobility 1.1.

void QGeoPlace::setAddress ( const QGeoAddress & address )

Sets the address of this place.

This function was introduced in Qt Mobility 1.1.

See also address().

void QGeoPlace::setCoordinate ( const QGeoCoordinate & coordinate )

Sets the coordinate that this place is located at.

This function was introduced in Qt Mobility 1.1.

See also coordinate().

void QGeoPlace::setViewport ( const QGeoBoundingBox & viewport )

Sets the viewport associated with this place to viewport.

The viewport is a suggestion for a size and position of a map window which aims to view this palce.

This function was introduced in Qt Mobility 1.1.

See also viewport().

QGeoBoundingBox QGeoPlace::viewport () const

Returns the viewport associated with this place.

The viewport is a suggestion for a size and position of a map window which aims to view this palce.

This function was introduced in Qt Mobility 1.1.

See also setViewport().

bool QGeoPlace::operator!= ( const QGeoPlace & other ) const

Returns true if other is not equal to this place, otherwise returns false.

This function was introduced in Qt Mobility 1.1.

QGeoPlace & QGeoPlace::operator= ( const QGeoPlace & other )

Assigns other to this place and returns a reference to this place.

This function was introduced in Qt Mobility 1.1.

bool QGeoPlace::operator== ( const QGeoPlace & other ) const

Returns true if other is equal to this place, otherwise returns false.

This function was introduced in Qt Mobility 1.1.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 44
  2. Microsoft ouvre aux autres compilateurs C++ AMP, la spécification pour la conception d'applications parallèles C++ utilisant le GPU 22
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. RIM : « 13 % des développeurs ont gagné plus de 100 000 $ sur l'AppWord », Qt et open-source au menu du BlackBerry DevCon Europe 0
  5. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
Page suivante

Le blog Digia au hasard

Logo

Déploiement d'applications Qt Commercial sur les tablettes Windows 8

Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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