QGraphicsSceneWheelEvent 類提供在圖形視圖框架中的滾輪事件。 更多...
| 頭: | #include <QGraphicsSceneWheelEvent> |
| qmake: | QT += widgets |
| Since: | Qt 4.2 |
| 繼承: | QGraphicsSceneEvent |
該類在 Qt 4.2 引入。
| virtual | ~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 |
QWheelEvent 接收通過 QGraphicsView are translated into QGraphicsSceneWheelEvents; it translates the QWheelEvent::globalPos() into item, scene, and screen coordinates ( pos (), scenePos (),和 screenPos ()).
另請參閱 QGraphicsSceneMouseEvent , QGraphicsSceneContextMenuEvent , QGraphicsSceneHoverEvent ,和 QWheelEvent .
[虛擬]
QGraphicsSceneWheelEvent::
~QGraphicsSceneWheelEvent
()
Returns the mouse buttons that were pressed when the wheel event occurred.
另請參閱 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.
另請參閱 buttons ().
返迴滾輪取嚮。
Returns the position of the cursor in item coordinates when the wheel event occurred.
另請參閱 scenePos () 和 screenPos ().
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.