Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QGraphicsSceneWheelEvent Class

TheQGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.More...

Header:#include <QGraphicsSceneWheelEvent>
Since: Qt 4.2
Inherits:QGraphicsSceneEvent

Public Functions

~QGraphicsSceneWheelEvent()
Qt::MouseButtonsbuttons() const
intdelta() const
Qt::KeyboardModifiersmodifiers() const
Qt::Orientationorientation() const
QPointFpos() const
QPointFscenePos() const
QPointscreenPos() const

Additional Inherited Members

  • 1 property inherited fromQEvent
  • 1 static public member inherited fromQEvent

Detailed Description

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.

Member Function Documentation

QGraphicsSceneWheelEvent::~QGraphicsSceneWheelEvent()

Destroys theQGraphicsSceneWheelEvent.

Qt::MouseButtons QGraphicsSceneWheelEvent::buttons() const

Returns the mouse buttons that were pressed when the wheel event occurred.

See alsomodifiers().

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 alsobuttons().

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 alsoscenePos() andscreenPos().

QPointF QGraphicsSceneWheelEvent::scenePos() const

Returns the position of the cursor in scene coordinates when the wheel event occurred.

See alsopos() andscreenPos().

QPoint QGraphicsSceneWheelEvent::screenPos() const

Returns the position of the cursor in screen coordinates when the wheel event occurred.

See alsopos() andscenePos().

© 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.


[8]ページ先頭

©2009-2025 Movatter.jp