Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QGraphicsSceneContextMenuEvent

    java.lang.Object
      com.trolltech.qt.internal.QSignalEmitterInternal
          com.trolltech.qt.QSignalEmitter
              com.trolltech.qt.QtJambiObject
                  com.trolltech.qt.core.QEvent
                      com.trolltech.qt.gui.QGraphicsSceneEvent
                          com.trolltech.qt.gui.QGraphicsSceneContextMenuEvent

All Implemented Interfaces:
  QtJambiInterface

    public class QGraphicsSceneContextMenuEvent

extends QGraphicsSceneEvent

The `QGraphicsSceneContextMenuEvent` class provides context menu events in the graphics view framework. A `QContextMenuEvent` received by a `QGraphicsView` is translated into a `QGraphicsSceneContextMenuEvent`. The `QWheelEvent::globalPos()` is translated into item, scene, and screen coordinates (`pos()`, `scenePos()`, and `screenPos()`).

See also:
  `QGraphicsSceneMouseEvent`, `QGraphicsSceneWheelEvent`, and `QContextMenuEvent`.

Nested Class Summary
`static class` | `QGraphicsSceneContextMenuEvent.Reason` This enum describes the reason why the context event was sent.

Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent
`QEvent.Type`

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9`

Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal`

Field Summary

Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`currentSender`

Method Summary
`Qt.KeyboardModifiers` | `modifiers()` Returns the keyboard modifiers in use when the context menu was requested.
`QPointF` | `pos()` Returns the position of the mouse cursor in item coordinates at the moment the the context menu was requested.
`QGraphicsSceneContextMenuEvent.Reason` | `reason()` Returns the reason for the context menu event.
`QPointF` | `scenePos()` Returns the position of the mouse cursor in scene coordinates at the moment the the context menu was requested.
`QPoint` | `screenPos()` Returns the position of the mouse cursor in screen coordinates at the moment the the context menu was requested.
`java.lang.String` | `toString()` Returns a string representation of the `this QGraphicsSceneContextMenuEvent`.

Methods inherited from class com.trolltech.qt.gui.QGraphicsSceneEvent
`widget`

Methods inherited from class com.trolltech.qt.core.QEvent
`accept, ignore, isAccepted, registerEventType, registerEventType, setAccepted, setT, spontaneous, t, type`

Methods inherited from class com.trolltech.qt.QtJambiObject
`dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr`

Methods inherited from class com.trolltech.qt.QSignalEmitter
`blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread`

Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`__qt_signalInitialization`

Methods inherited from class java.lang.Object
`clone, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface com.trolltech.qt.QtJambiInterface
`disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership`

Method Detail

### modifiers

    public final Qt.KeyboardModifiers modifiers()

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

### pos

    public final QPointF pos()

  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

    public final QGraphicsSceneContextMenuEvent.Reason reason()

  Returns the reason for the context menu event.

See also:
  `QGraphicsSceneContextMenuEvent::Reason` .

### scenePos

    public final QPointF scenePos()

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

See also:
  `pos()`, and `screenPos()`.

### screenPos

    public final QPoint 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()`.

### toString

    public java.lang.String toString()

  Returns a string representation of the `this QGraphicsSceneContextMenuEvent`.

  Overrides:
    `toString` in class `QGraphicsSceneEvent`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD