|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QGraphicsSceneWheelEvent Class Reference
[QtGui module]

     #include <QGraphicsSceneWheelEvent>

Inherits QGraphicsSceneEvent.

This class was introduced in Qt 4.2.

- List of all members, including inherited members

### Public Functions

- QGraphicsSceneWheelEvent ( Type type = None )
- ~QGraphicsSceneWheelEvent ()
- Qt::MouseButtons buttons () const
- int delta () const
- Qt::KeyboardModifiers modifiers () const
- QPointF pos () const
- QPointF scenePos () const
- QPoint screenPos () const
- void setButtons ( Qt::MouseButtons buttons )
- void setDelta ( int delta )
- void setModifiers ( Qt::KeyboardModifiers modifiers )
- void setPos ( const QPointF & pos )
- void setScenePos ( const QPointF & pos )
- void setScreenPos ( const QPoint & pos )

- 2 public functions inherited from QGraphicsSceneEvent
- 6 public functions inherited from QEvent

### Additional Inherited Members

- 1 property inherited from QEvent

## Detailed Description

## Member Function Documentation

### QGraphicsSceneWheelEvent::QGraphicsSceneWheelEvent ( Type type = None )

Constructs a QGraphicsSceneWheelEvent of type type.

### QGraphicsSceneWheelEvent::~QGraphicsSceneWheelEvent ()

Destroys the QGraphicsSceneWheelEvent.

### Qt::MouseButtons QGraphicsSceneWheelEvent::buttons () const

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

See also setButtons() and modifiers().

### int QGraphicsSceneWheelEvent::delta () const

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 () const

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

See also setModifiers() and buttons().

### QPointF QGraphicsSceneWheelEvent::pos () const

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

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

### QPointF QGraphicsSceneWheelEvent::scenePos () const

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

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

### QPoint QGraphicsSceneWheelEvent::screenPos () const

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

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

### void QGraphicsSceneWheelEvent::setButtons ( Qt::MouseButtons buttons )

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

See also buttons() and setModifiers().

### void QGraphicsSceneWheelEvent::setDelta ( int delta )

Sets the distance that the wheel is rotated to delta.

See also delta().

### void QGraphicsSceneWheelEvent::setModifiers ( Qt::KeyboardModifiers modifiers )

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

See also modifiers() and setButtons().

### void QGraphicsSceneWheelEvent::setPos ( const QPointF & pos )

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

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

### void QGraphicsSceneWheelEvent::setScenePos ( const QPointF & pos )

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

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

### void QGraphicsSceneWheelEvent::setScreenPos ( const QPoint & pos )

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

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