Home · All Classes · Modules

QGraphicsSceneContextMenuEvent Class Reference
[QtGui module]

Inherits QGraphicsSceneEvent.

Types

Methods


Detailed Description

See also QGraphicsSceneMouseEvent.


Type Documentation

QGraphicsSceneContextMenuEvent.Reason

This enum describes the reason why the context event was sent.

Constant Value Description
QGraphicsSceneContextMenuEvent.Mouse 0 The mouse caused the event to be sent. Normally this means the right mouse button was clicked, but this is platform dependent.
QGraphicsSceneContextMenuEvent.Keyboard 1 The keyboard caused this event to be sent. On Windows, 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).



Method Documentation

QGraphicsSceneContextMenuEvent.__init__ (self, QEvent.Type type = QEvent.None)

QGraphicsSceneContextMenuEvent.__init__ (self, QGraphicsSceneContextMenuEvent other)

Qt.KeyboardModifiers QGraphicsSceneContextMenuEvent.modifiers (self)

Returns the keyboard modifiers in use when the context menu was requested.

QPointF QGraphicsSceneContextMenuEvent.pos (self)

Returns the position of the mouse cursor in item coordinates at the moment the the context menu was requested.

See also scenePos() and screenPos().

Reason QGraphicsSceneContextMenuEvent.reason (self)

Returns the reason for the context menu event.

See also setReason().

QPointF QGraphicsSceneContextMenuEvent.scenePos (self)

Returns the position of the mouse cursor in scene coordinates at the moment the the context menu was requested.

See also pos() and screenPos().

QPoint QGraphicsSceneContextMenuEvent.screenPos (self)

Returns the position of the mouse cursor in screen coordinates at the moment the the context menu was requested.

See also pos() and scenePos().

QGraphicsSceneContextMenuEvent.setModifiers (self, Qt.KeyboardModifiers modifiers)

QGraphicsSceneContextMenuEvent.setPos (self, QPointF pos)

QGraphicsSceneContextMenuEvent.setReason (self, Reason reason)

Sets the reason for the context menu event to reason.

See also reason().

QGraphicsSceneContextMenuEvent.setScenePos (self, QPointF pos)

QGraphicsSceneContextMenuEvent.setScreenPos (self, QPoint pos)


PyQt 4.1.1 for X11Copyright © Riverbank Computing Ltd and Trolltech AS 2006Qt 4.2.2