QGraphicsSceneWheelEvent露

The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework. More鈥�

Inheritance diagram of PySide2.QtWidgets.QGraphicsSceneWheelEvent

Synopsis露

Functions露

Detailed Description露

The 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() , and screenPos() ).

class PySide2.QtWidgets.QGraphicsSceneWheelEvent([type=None])露
param type:

Type

Constructs a QGraphicsSceneWheelEvent of type type , which is always GraphicsSceneWheel .

PySide2.QtWidgets.QGraphicsSceneWheelEvent.buttons()露
Return type:

MouseButtons

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

See also

modifiers()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.delta()露
Return type:

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()露
Return type:

KeyboardModifiers

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

See also

buttons()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.orientation()露
Return type:

Orientation

Returns the wheel orientation.

PySide2.QtWidgets.QGraphicsSceneWheelEvent.pos()露
Return type:

PySide2.QtCore.QPointF

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

PySide2.QtWidgets.QGraphicsSceneWheelEvent.scenePos()露
Return type:

PySide2.QtCore.QPointF

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

See also

pos() screenPos()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.screenPos()露
Return type:

PySide2.QtCore.QPoint

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

See also

pos() scenePos()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.setButtons(buttons)露
Parameters:

buttons 鈥� MouseButtons

See also

buttons()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.setDelta(delta)露
Parameters:

delta 鈥� int

See also

delta()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.setModifiers(modifiers)露
Parameters:

modifiers 鈥� KeyboardModifiers

See also

modifiers()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.setOrientation(orientation)露
Parameters:

orientation 鈥� Orientation

See also

orientation()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.setPos(pos)露
Parameters:

pos 鈥� PySide2.QtCore.QPointF

See also

pos()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.setScenePos(pos)露
Parameters:

pos 鈥� PySide2.QtCore.QPointF

See also

scenePos()

PySide2.QtWidgets.QGraphicsSceneWheelEvent.setScreenPos(pos)露
Parameters:

pos 鈥� PySide2.QtCore.QPoint

See also

screenPos()