QtBase
v6.3.1
|
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework. More...
#include <qgraphicssceneevent.h>
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
\inmodule QtWidgets
\l{QWheelEvent}{QWheelEvent}s received by a QGraphicsView are translated into QGraphicsSceneWheelEvents; it translates the QWheelEvent::globalPos() into item, scene, and screen coordinates (pos(), scenePos(), and screenPos()).
Definition at line 136 of file qgraphicssceneevent.h.
Definition at line 734 of file qgraphicssceneevent.cpp.
QGraphicsSceneWheelEvent::~QGraphicsSceneWheelEvent | ( | ) |
Destroys the QGraphicsSceneWheelEvent.
Definition at line 742 of file qgraphicssceneevent.cpp.
Qt::MouseButtons QGraphicsSceneWheelEvent::buttons | ( | ) | const |
Returns the mouse buttons that were pressed when the wheel event occurred.
Definition at line 814 of file qgraphicssceneevent.cpp.
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).
Definition at line 859 of file qgraphicssceneevent.cpp.
bool QGraphicsSceneWheelEvent::isInverted | ( | ) | const |
Returns whether the delta values delivered with the event are inverted.
Definition at line 944 of file qgraphicssceneevent.cpp.
Qt::KeyboardModifiers QGraphicsSceneWheelEvent::modifiers | ( | ) | const |
Returns the keyboard modifiers that were active when the wheel event occurred.
Definition at line 835 of file qgraphicssceneevent.cpp.
Qt::Orientation QGraphicsSceneWheelEvent::orientation | ( | ) | const |
Returns the wheel orientation.
Definition at line 877 of file qgraphicssceneevent.cpp.
Qt::ScrollPhase QGraphicsSceneWheelEvent::phase | ( | ) | const |
Returns the scrolling phase of this wheel event.
Definition at line 899 of file qgraphicssceneevent.cpp.
QPoint QGraphicsSceneWheelEvent::pixelDelta | ( | ) | const |
Returns the scrolling distance in pixels on screen. This value is provided on platforms that support high-resolution pixel-based delta values, such as \macos. The value should be used directly to scroll content on screen.
Definition at line 924 of file qgraphicssceneevent.cpp.
QPointF QGraphicsSceneWheelEvent::pos | ( | ) | const |
Returns the position of the cursor in item coordinates when the wheel event occurred.
Definition at line 752 of file qgraphicssceneevent.cpp.
QPointF QGraphicsSceneWheelEvent::scenePos | ( | ) | const |
Returns the position of the cursor in scene coordinates when the wheel event occurred.
Definition at line 773 of file qgraphicssceneevent.cpp.
QPoint QGraphicsSceneWheelEvent::screenPos | ( | ) | const |
Returns the position of the cursor in screen coordinates when the wheel event occurred.
Definition at line 794 of file qgraphicssceneevent.cpp.
void QGraphicsSceneWheelEvent::setButtons | ( | Qt::MouseButtons | buttons | ) |
void QGraphicsSceneWheelEvent::setDelta | ( | int | delta | ) |
void QGraphicsSceneWheelEvent::setInverted | ( | bool | inverted | ) |
Definition at line 953 of file qgraphicssceneevent.cpp.
void QGraphicsSceneWheelEvent::setModifiers | ( | Qt::KeyboardModifiers | modifiers | ) |
void QGraphicsSceneWheelEvent::setOrientation | ( | Qt::Orientation | orientation | ) |
void QGraphicsSceneWheelEvent::setPhase | ( | Qt::ScrollPhase | scrollPhase | ) |
Definition at line 908 of file qgraphicssceneevent.cpp.