QGraphicsSceneContextMenuEvent Class ReferenceThe QGraphicsSceneContextMenuEvent class provides context menu events in the graphics view framework. More... #include <QGraphicsSceneContextMenuEvent> Inherits: QGraphicsSceneEvent. This class was introduced in Qt 4.2. Public Types
Public Functions
Additional Inherited MembersDetailed DescriptionThe QGraphicsSceneContextMenuEvent class provides context menu events in the graphics view framework. A QContextMenuEvent received by a QGraphicsView is translated into a QGraphicsSceneContextMenuEvent. The QContextMenuEvent::globalPos() is translated into item, scene, and screen coordinates (pos(), scenePos(), and screenPos()). See also QGraphicsSceneMouseEvent, QGraphicsSceneWheelEvent, and QContextMenuEvent. Member Type Documentation
|
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.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.