CopperSpice API
1.9.2
|
Provides wheel events in the graphics view system. More...
Public Methods | |
~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 |
Public Methods inherited from QGraphicsSceneEvent | |
~QGraphicsSceneEvent () | |
QWidget * | widget () const |
Public Methods inherited from QEvent | |
QEvent (const QEvent &other) | |
QEvent (Type type) | |
virtual | ~QEvent () |
void | accept () |
void | ignore () |
bool | isAccepted () const |
QEvent & | operator= (const QEvent &other) |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Type | type () const |
Additional Inherited Members | |
Public Types inherited from QEvent | |
enum | Type |
Static Public Methods inherited from QEvent | |
static int | registerEventType (int hint=-1) |
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view system. QWheelEvents received by a QGraphicsView are translated into QGraphicsSceneWheelEvents, it translates the QWheelEvent::globalPos() into item, scene, and screen coordinates (pos(), scenePos(), and screenPos()).
QGraphicsSceneWheelEvent::~QGraphicsSceneWheelEvent | ( | ) |
Destroys the QGraphicsSceneWheelEvent.
Qt::MouseButtons QGraphicsSceneWheelEvent::buttons | ( | ) | const |
Returns the mouse buttons that were pressed when the wheel event occurred.
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.
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.
QPointF QGraphicsSceneWheelEvent::scenePos | ( | ) | const |
Returns the position of the cursor in scene coordinates when the wheel event occurred.
QPoint QGraphicsSceneWheelEvent::screenPos | ( | ) | const |
Returns the position of the cursor in screen coordinates when the wheel event occurred.