The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework. More...
#include <QGraphicsSceneWheelEvent>
Inherits: QGraphicsSceneEvent.
This class was introduced in Qt 4.2.
~QGraphicsSceneWheelEvent () | |
Qt::MouseButtons | buttons () const |
int | delta () const |
Qt::KeyboardModifiers | modifiers () const |
Qt::Orientation | orientation () const |
QPointF | pos () const |
QPointF | scenePos () const |
QPoint | screenPos () const |
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
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 QGraphicsSceneMouseEvent, QGraphicsSceneContextMenuEvent, QGraphicsSceneHoverEvent, and QWheelEvent.
Destroys the QGraphicsSceneWheelEvent.
Returns the mouse buttons that were pressed when the wheel event occurred.
See also modifiers().
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).
Returns the keyboard modifiers that were active when the wheel event occurred.
See also buttons().
Returns the wheel orientation.
Returns the position of the cursor in item coordinates when the wheel event occurred.
See also scenePos() and screenPos().
Returns the position of the cursor in scene coordinates when the wheel event occurred.
See also pos() and screenPos().
Returns the position of the cursor in screen coordinates when the wheel event occurred.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.