Home · All Classes · Modules

QGraphicsSceneWheelEvent Class Reference
[QtGui module]

Inherits QGraphicsSceneEvent.

Methods


Detailed Description


Method Documentation

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

Constructs a QGraphicsSceneWheelEvent of type type.

QGraphicsSceneWheelEvent.__init__ (self, QGraphicsSceneWheelEvent)

Qt.MouseButtons QGraphicsSceneWheelEvent.buttons (self)

Returns the mouse buttons that were pressed when the wheel event occurred.

See also setButtons() and modifiers().

int QGraphicsSceneWheelEvent.delta (self)

Returns the distance that the wheel is rotated, in eights of a degree. A positive value indicates that the wheel was rotated forwards away from the user; a negative value indicates that the wheel was rotated backwards toward the user.

Most mouse types work in steps of 15 degrees, in which case the delta value is a multiple of 120 (== 15 * 8).

See also setDelta().

Qt.KeyboardModifiers QGraphicsSceneWheelEvent.modifiers (self)

Returns the keyboard modifiers that were active when the wheel event occurred.

See also setModifiers() and buttons().

QPointF QGraphicsSceneWheelEvent.pos (self)

Returns the position of the cursor in item coordinates when the wheel event occurred.

See also setPos(), scenePos(), and screenPos().

QPointF QGraphicsSceneWheelEvent.scenePos (self)

Returns the position of the cursor in item coordinates when the wheel event occurred.

See also setScenePos(), pos(), and screenPos().

QPoint QGraphicsSceneWheelEvent.screenPos (self)

Returns the position of the cursor in screen coordinates when the wheel event occurred.

See also setScreenPos(), pos(), and scenePos().

QGraphicsSceneWheelEvent.setButtons (self, Qt.MouseButtons buttons)

Sets the mouse buttons that were pressed when the wheel event occurred to buttons.

See also buttons() and setModifiers().

QGraphicsSceneWheelEvent.setDelta (self, int delta)

Sets the distance that the wheel is rotated to delta.

See also delta().

QGraphicsSceneWheelEvent.setModifiers (self, Qt.KeyboardModifiers modifiers)

Sets the keyboard modifiers that were active when the wheel event occurred to modifiers.

See also modifiers() and setButtons().

QGraphicsSceneWheelEvent.setPos (self, QPointF pos)

Sets the position of the cursor in item coordinates when the wheel event occurred to pos.

See also pos(), setScenePos(), and setScreenPos().

QGraphicsSceneWheelEvent.setScenePos (self, QPointF pos)

Sets the position of the cursor in scene coordinates when the wheel event occurred to pos.

See also scenePos(), setPos(), and setScreenPos().

QGraphicsSceneWheelEvent.setScreenPos (self, QPoint pos)

Sets the position of the cursor in screen coordinates when the wheel event occurred to pos.

See also screenPos(), setPos(), and setScenePos().


PyQt 4.1 for X11Copyright © Riverbank Computing Ltd and Trolltech AS 2006Qt 4.2.1