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  · 

QGeoMapPixmapObject Class Reference

The QGeoMapPixmapObject class is a QGeoMapObject used to draw a pixmap on a map. More...

 #include <QGeoMapPixmapObject>

Inherits: QGeoMapObject.

This class was introduced in Qt Mobility 1.1.

Properties

Public Functions

QGeoMapPixmapObject ()
QGeoMapPixmapObject ( const QGeoCoordinate & coordinate, const QPoint & offset = QPoint( 0, 0 ), const QPixmap & pixmap = QPixmap() )
~QGeoMapPixmapObject ()
QGeoCoordinate coordinate () const
QPoint offset () const
QPixmap pixmap () const
void setCoordinate ( const QGeoCoordinate & coordinate )
void setOffset ( const QPoint & offset )
void setPixmap ( const QPixmap & pixmap )

Reimplemented Public Functions

virtual QGeoMapObject::Type type () const

Signals

void coordinateChanged ( const QGeoCoordinate & coordinate )
void offsetChanged ( const QPoint & offset )
void pixmapChanged ( const QPixmap & pixmap )

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 3 protected functions inherited from QGeoMapObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QGeoMapPixmapObject class is a QGeoMapObject used to draw a pixmap on a map.

The pixmap object is rendered such that the upper left corner of QGeoMapPixmapObject::pixmap will be drawn QGeoMapPixmapObject::offset pixels away from the position of QGeoMapPixmapObject::coordinate on the map.

Property Documentation

coordinate : QGeoCoordinate

This property holds the coordinate that specifies where the pixmap will be drawn by this pixmap object.

The default value of this property is an invalid coordinate. While the value of this property is invalid the pixmap object will not be displayed.

This property was introduced in Qt Mobility 1.1.

Access functions:

QGeoCoordinate coordinate () const
void setCoordinate ( const QGeoCoordinate & coordinate )

Notifier signal:

void coordinateChanged ( const QGeoCoordinate & coordinate )

offset : QPoint

This property holds the offset in pixels at which the pixmap will be drawn by this pixmap object.

The default value of this property is QPoint(0, 0). If this value is not changed the upper left coordinate of the pixmap will be drawn at the coordinate specified by QGeoMapPixmapObject::coordinate.

The offset is in pixels and is independent of the zoom level of the map. The offset property is provided so that pixmaps such as arrows can be drawn with the point of the arrow placed exactly on the associated coordinate.

This property was introduced in Qt Mobility 1.1.

Access functions:

QPoint offset () const
void setOffset ( const QPoint & offset )

Notifier signal:

void offsetChanged ( const QPoint & offset )

pixmap : QPixmap

This property holds the pixmap that will be drawn by this pixmap object.

The default value of this property is a null pixmap. While the value of this property is the null pixmap the pixmap object will not be displayed.

The pixmap will be drawn such that the upper left corner of the pixmap will be drawn QGeoMapPixmapObject::offset pixels away from the position of QGeoMapPixmapObject::coordinate on the map.

This property was introduced in Qt Mobility 1.1.

Access functions:

QPixmap pixmap () const
void setPixmap ( const QPixmap & pixmap )

Notifier signal:

void pixmapChanged ( const QPixmap & pixmap )

Member Function Documentation

QGeoMapPixmapObject::QGeoMapPixmapObject ()

Constructs a new pixmap object.

QGeoMapPixmapObject::QGeoMapPixmapObject ( const QGeoCoordinate & coordinate, const QPoint & offset = QPoint( 0, 0 ), const QPixmap & pixmap = QPixmap() )

Constructs a new pixmap object which will draw the pixmap pixmap at an offset of offset pixels from the coordinate coordinate.

QGeoMapPixmapObject::~QGeoMapPixmapObject ()

Destroys this pixmap object.

void QGeoMapPixmapObject::coordinateChanged ( const QGeoCoordinate & coordinate ) [signal]

This signal is emitted when the coordinate at which the pixmap should be drawn has changed.

The new value will be coordinate.

This function was introduced in Qt Mobility 1.1.

void QGeoMapPixmapObject::offsetChanged ( const QPoint & offset ) [signal]

This signal is emitted when the on-screen offset from the coordinate at which this pixmap object should be drawn has changed.

The new value will be offset.

This function was introduced in Qt Mobility 1.1.

void QGeoMapPixmapObject::pixmapChanged ( const QPixmap & pixmap ) [signal]

This signal is emitted when the pixmap associated with this pixmap object has changed.

The new value will be pixmap.

This function was introduced in Qt Mobility 1.1.

QGeoMapObject::Type QGeoMapPixmapObject::type () const [virtual]

Reimplemented from QGeoMapObject::type().

This function was introduced in Qt Mobility 1.1.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  2. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 45
  3. Une nouvelle ère d'IHM 3D pour les automobiles, un concept proposé par Digia et implémenté avec Qt 3
  4. Qt Creator 2.5 est sorti en beta, l'EDI supporte maintenant plus de fonctionnalités de C++11 2
  5. PySide devient un add-on Qt et rejoint le Qt Project et le modèle d'open gouvernance 1
  6. Vingt sociétés montrent leurs décodeurs basés sur Qt au IPTV World Forum, en en exploitant diverses facettes (déclaratif, Web, widgets) 0
  7. Thread travailleur avec Qt en utilisant les signaux et les slots, un article de Christophe Dumez traduit par Thibaut Cuvelier 1
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 50
  4. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  5. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 45
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
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