内容表

上一话题

QGraphicsSceneResizeEvent

下一话题

QGraphicsSimpleTextItem

QGraphicsSceneWheelEvent

QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework. 更多 …

Inheritance diagram of PySide2.QtWidgets.QGraphicsSceneWheelEvent

概要

函数

详细描述

QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.

QWheelEvent s received by a QGraphicsView are translated into QGraphicsSceneWheelEvents; it translates the globalPos() into item, scene, and screen coordinates ( pos() , scenePos() ,和 screenPos() ).

class QGraphicsSceneWheelEvent ( [ type=None ] )
param type

Type

构造 QGraphicsSceneWheelEvent of type type , which is always GraphicsSceneWheel .

PySide2.QtWidgets.QGraphicsSceneWheelEvent. buttons ( )
返回类型

MouseButtons

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

另请参阅

modifiers()

PySide2.QtWidgets.QGraphicsSceneWheelEvent. delta ( )
返回类型

int

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

PySide2.QtWidgets.QGraphicsSceneWheelEvent. modifiers ( )
返回类型

KeyboardModifiers

Returns the keyboard modifiers that were active when the wheel event occurred.

另请参阅

buttons()

PySide2.QtWidgets.QGraphicsSceneWheelEvent. orientation ( )
返回类型

取向

Returns the wheel orientation.

PySide2.QtWidgets.QGraphicsSceneWheelEvent. pos ( )
返回类型

QPointF

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

PySide2.QtWidgets.QGraphicsSceneWheelEvent. scenePos ( )
返回类型

QPointF

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

PySide2.QtWidgets.QGraphicsSceneWheelEvent. screenPos ( )
返回类型

QPoint

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

PySide2.QtWidgets.QGraphicsSceneWheelEvent. setButtons ( buttons )
参数

buttons – MouseButtons

另请参阅

buttons()

PySide2.QtWidgets.QGraphicsSceneWheelEvent. setDelta ( delta )
参数

delta – int

另请参阅

delta()

PySide2.QtWidgets.QGraphicsSceneWheelEvent. setModifiers ( modifiers )
参数

modifiers – KeyboardModifiers

另请参阅

modifiers()

PySide2.QtWidgets.QGraphicsSceneWheelEvent. setOrientation ( orientation )
参数

orientation – 取向

另请参阅

orientation()

PySide2.QtWidgets.QGraphicsSceneWheelEvent. setPos ( pos )
参数

pos – QPointF

另请参阅

pos()

PySide2.QtWidgets.QGraphicsSceneWheelEvent. setScenePos ( pos )
参数

pos – QPointF

另请参阅

scenePos()

PySide2.QtWidgets.QGraphicsSceneWheelEvent. setScreenPos ( pos )
参数

pos – QPoint

另请参阅

screenPos()