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  · 

MapMouseEvent

The MapMouseEvent object provides information about a mouse event. More...

Inherits QtObject

This type was introduced in Qt Location 5.0.

Properties

Detailed Description

The position of the mouse can be found via the x and y properties or the coordinate property. Both x and y are relative to the MapMouseArea that generated the event. The button that caused the event is available via the button property.

See also MapMouseArea.

Property Documentation

accepted : bool

Setting accepted to true prevents the mouse event from being propagated to items below the item currently handling the event.

Generally, if the item acts on the mouse event then it should be accepted so that items lower in the stacking order do not also respond to the same event.


read-onlybutton : enumeration

This property holds the button that caused the event. It can be one of:

  • Qt.LeftButton
  • Qt.RightButton
  • Qt.MiddleButton

See also buttons.


read-onlybuttons : enumeration

This property holds the mouse buttons pressed when the event was generated. For mouse move events, this is all buttons that are pressed down. For mouse press and double click events this includes the button that caused the event. For mouse release events this excludes the button that caused the event.

It contains a bitwise combination of:

  • Qt.LeftButton
  • Qt.RightButton
  • Qt.MiddleButton

See also button.


read-onlycoordinate : Coordinate

This property holds the coordinate corresponding to the latitude and longitude of the position on the map at which the mouse event occurred.


read-onlymodifiers : int

This property holds the keyboard modifier flags that existed immediately before the event occurred.

It contains a bitwise combination of:

  • Qt.NoModifier - No modifier key is pressed.
  • Qt.ShiftModifier - A Shift key on the keyboard is pressed.
  • Qt.ControlModifier - A Ctrl key on the keyboard is pressed.
  • Qt.AltModifier - An Alt key on the keyboard is pressed.
  • Qt.MetaModifier - A Meta key on the keyboard is pressed.
  • Qt.KeypadModifier - A keypad button is pressed.

read-onlywasHeld : bool

This property is true if the mouse button has been held pressed longer the threshold (800ms).


read-onlyx : int

This property holds the x-screen coordinate of the position supplied by the mouse event.


read-onlyy : int

This property holds the y-screen coordinate of the position supplied by the mouse event.


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