QGraphicsSceneWheelEvent Class Reference

[QtGui module]

该QGraphicsSceneWheelEvent类提供在图形滚轮事件视图框架。More…

继承QGraphicsSceneEvent

Methods

  • Qt.MouseButtons buttons (self)
  • int delta (self)
  • Qt.KeyboardModifiers modifiers (self)
  • Qt.Orientation orientation (self)
  • QPointF pos (self)
  • QPointF scenePos (self)
  • QPoint screenPos (self)

Detailed Description

该QGraphicsSceneWheelEvent类提供在图形滚轮事件视图框架。

该QGraphicsSceneWheelEvent类提供在图形滚轮事件视图框架。

QWheelEvents内收到由QGraphicsView被翻译成QGraphicsSceneWheelEvents ,它的转换QWheelEvent.globalPos( )到项目,场景,和屏幕坐标(pos( )scenePos()和screenPos())。


Method Documentation

  1. Qt.MouseButtons QGraphicsSceneWheelEvent.buttons (self)

[

返回被压在车轮发生事件的鼠标按键。

]($docs-index.htm)

See also modifiers( ) 。

  1. int QGraphicsSceneWheelEvent.delta (self)

返回一定程度的车轮转动的距离,在八分( 1/8S ) 。正值表示滚轮是向前旋转远离用户,负值表示滚轮被向后旋转朝向用户。

大多数类型的鼠标,步长为15度工作,在这种情况下,增量值是120 (== 15 * 8)的倍数。

  1. Qt.KeyboardModifiers QGraphicsSceneWheelEvent.modifiers (self)

[

返回键盘功能键时,滚轮事件发生的活跃。

]($docs-index.htm)

See also buttons( ) 。

  1. Qt.Orientation QGraphicsSceneWheelEvent.orientation (self)

[

返回车轮方向。

](qt.html#Orientation-enum)

  1. QPointF QGraphicsSceneWheelEvent.pos (self)

[

返回时,滚轮事件发生光标在项目的位置坐标。

]($docs-qpointf.html)

See also scenePos()和screenPos( ) 。

  1. QPointF QGraphicsSceneWheelEvent.scenePos (self)

[

返回时,滚轮事件发生光标在现场的位置坐标。

]($docs-qpointf.html)

See also pos()和screenPos( ) 。

  1. QPoint QGraphicsSceneWheelEvent.screenPos (self)

[

返回时,滚轮事件发生光标在屏幕上的位置坐标。

]($docs-qpoint.html)

See also pos()和scenePos( ) 。