|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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.QGraphicsSceneMouseEvent
public class QGraphicsSceneMouseEvent
The QGraphicsSceneMouseEvent
class provides mouse events in the graphics view framework. When a QGraphicsView
receives a QMouseEvent
, it translates it to a QGraphicsSceneMouseEvent
. The event is then forwarded to the QGraphicsScene
associated with the view.
In addition to containing the item, scene, and screen coordinates of the event (as pos()
, scenePos()
, and screenPos()
), mouse events also contain the coordinates of the previous mouse event received by the view. These can be retrieved with lastPos()
, lastScreenPos()
, and lastScenePos()
.
QGraphicsSceneContextMenuEvent
, QGraphicsSceneHoverEvent
, QGraphicsSceneWheelEvent
, and QMouseEvent
.
Nested Class Summary |
---|
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.MouseButton |
button()
Returns the mouse button (if any) that caused the event. |
QPointF |
buttonDownPos(Qt.MouseButton button)
Returns the mouse cursor position in item coordinates where the specified button was clicked. |
QPointF |
buttonDownScenePos(Qt.MouseButton button)
Returns the mouse cursor position in scene coordinates where the specified button was clicked. |
QPoint |
buttonDownScreenPos(Qt.MouseButton button)
Returns the mouse cursor position in screen coordinates where the specified button was clicked. |
Qt.MouseButtons |
buttons()
Returns the combination of mouse buttons that were pressed at the time the event was sent. |
QPointF |
lastPos()
Returns the last recorded mouse cursor position in item coordinates. |
QPointF |
lastScenePos()
Returns the last recorded mouse cursor position in scene coordinates. |
QPoint |
lastScreenPos()
Returns the last recorded mouse cursor position in screen coordinates. |
Qt.KeyboardModifiers |
modifiers()
Returns the keyboard modifiers in use at the time the event was sent. |
QPointF |
pos()
Returns the mouse cursor position in item coordinates. |
QPointF |
scenePos()
Returns the mouse cursor position in scene coordinates. |
QPoint |
screenPos()
Returns the mouse cursor position in screen coordinates. |
java.lang.String |
toString()
|
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 |
---|
public final Qt.MouseButton button()
buttons()
, and modifiers()
.
public final QPointF buttonDownPos(Qt.MouseButton button)
buttonDownScenePos()
, buttonDownScreenPos()
, and pos()
.
public final QPointF buttonDownScenePos(Qt.MouseButton button)
buttonDownPos()
, buttonDownScreenPos()
, and scenePos()
.
public final QPoint buttonDownScreenPos(Qt.MouseButton button)
screenPos()
, buttonDownPos()
, and buttonDownScenePos()
.
public final Qt.MouseButtons buttons()
button()
, and modifiers()
.
public final QPointF lastPos()
lastScenePos()
, lastScreenPos()
, and pos()
.
public final QPointF lastScenePos()
lastPos()
, lastScreenPos()
, and scenePos()
.
public final QPoint lastScreenPos()
lastPos()
, lastScenePos()
, and screenPos()
.
public final Qt.KeyboardModifiers modifiers()
buttons()
, and button()
.
public final QPointF pos()
scenePos()
, screenPos()
, and lastPos()
.
public final QPointF scenePos()
pos()
, screenPos()
, and lastScenePos()
.
public final QPoint screenPos()
pos()
, scenePos()
, and lastScreenPos()
.
public java.lang.String toString()
toString
in class QGraphicsSceneEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |