QGraphicsSceneWheelEvent Class▲
-
Header: QGraphicsSceneWheelEvent
-
Since: Qt 4.2
-
qmake: QT += widgets
-
Inherits: QGraphicsSceneEvent
-
Group: QGraphicsSceneWheelEvent is part of graphicsview-api
Detailed Description▲
QWheelEvents received by a QGraphicsView are translated into QGraphicsSceneWheelEvents; it translates the QWheelEvent::globalPos() into item, scene, and screen coordinates (pos(), scenePos(), and screenPos()).
See Also▲
Member Function Documentation▲
[virtual] QGraphicsSceneWheelEvent::~QGraphicsSceneWheelEvent()▲
Destroys the QGraphicsSceneWheelEvent.
Qt::MouseButtons QGraphicsSceneWheelEvent::buttons() const▲
int QGraphicsSceneWheelEvent::delta() const▲
Returns the distance that the wheel is rotated, in eighths (1/8s) 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).
Qt::KeyboardModifiers QGraphicsSceneWheelEvent::modifiers() const▲
Returns the keyboard modifiers that were active when the wheel event occurred.
See Also▲
See also buttons()
Qt::Orientation QGraphicsSceneWheelEvent::orientation() const▲
Returns the wheel orientation.
QPointF QGraphicsSceneWheelEvent::pos() const▲
Returns the position of the cursor in item coordinates when the wheel event occurred.
See Also▲
QPointF QGraphicsSceneWheelEvent::scenePos() const▲
Returns the position of the cursor in scene coordinates when the wheel event occurred.