QGraphicsSceneContextMenuEvent Class Reference
|
Constant | Value | Description |
---|---|---|
QGraphicsSceneContextMenuEvent::Mouse | 0 | The mouse caused the event to be sent. On most platforms, this means the right mouse button was clicked. |
QGraphicsSceneContextMenuEvent::Keyboard | 1 | The keyboard caused this event to be sent. On Windows and Mac OS X, this means the menu button was pressed. |
QGraphicsSceneContextMenuEvent::Other | 2 | The event was sent by some other means (i.e. not by the mouse or keyboard). |
Destroys the event.
Returns the keyboard modifiers in use when the context menu was requested.
Returns the position of the mouse cursor in item coordinates at the moment the context menu was requested.
See also scenePos() and screenPos().
Returns the reason for the context menu event.
See also QGraphicsSceneContextMenuEvent::Reason.
Returns the position of the mouse cursor in scene coordinates at the moment the the context menu was requested.
See also pos() and screenPos().
Returns the position of the mouse cursor in screen coordinates at the moment the the context menu was requested.
See also pos() and scenePos().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.5.2 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |