
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.More...
| Header: | #include <QGraphicsSceneWheelEvent> |
| Since: | Qt 4.2 |
| Inherits: | QGraphicsSceneEvent |
| ~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 |
TheQGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
TheQGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
QWheelEvents received by aQGraphicsView are translated into QGraphicsSceneWheelEvents; it translates theQWheelEvent::globalPos() into item, scene, and screen coordinates (pos(),scenePos(), andscreenPos()).
See alsoQGraphicsSceneMouseEvent,QGraphicsSceneContextMenuEvent,QGraphicsSceneHoverEvent, andQWheelEvent.
Destroys theQGraphicsSceneWheelEvent.
Returns the mouse buttons that were pressed when the wheel event occurred.
See alsomodifiers().
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 alsobuttons().
Returns the wheel orientation.
Returns the position of the cursor in item coordinates when the wheel event occurred.
See alsoscenePos() andscreenPos().
Returns the position of the cursor in scene coordinates when the wheel event occurred.
Returns the position of the cursor in screen coordinates when the wheel event occurred.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.