内容表

上一话题

Qt3DInput.QMouseHandler

下一话题

Qt3DInput

Qt3DInput.QWheelEvent

QWheelEvent class contains parameters that describe a mouse wheel event. 更多

Inheritance diagram of PySide2.Qt3DInput.Qt3DInput.QWheelEvent

概要

函数

详细描述

Mouse wheel events occur when the mouse is rotated.

另请参阅

QKeyEvent QMouseEvent QMouseHandler

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. Buttons

常量

描述

Qt3DInput.QWheelEvent.LeftButton

Qt3DInput.QWheelEvent.RightButton

Qt3DInput.QWheelEvent.MiddleButton

Qt3DInput.QWheelEvent.BackButton

Qt3DInput.QWheelEvent.NoButton

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. Modifiers

常量

描述

Qt3DInput.QWheelEvent.NoModifier

Qt3DInput.QWheelEvent.ShiftModifier

Qt3DInput.QWheelEvent.ControlModifier

Qt3DInput.QWheelEvent.AltModifier

Qt3DInput.QWheelEvent.MetaModifier

Qt3DInput.QWheelEvent.KeypadModifier

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. angleDelta ( )
返回类型

QPoint

Returns the distance that the wheel is rotated, in eighths of a degree. A positive value indicates that the wheel was rotated forward (away from the user), a negative value indicates the wheel was rotated backward (toward the user).

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. buttons ( )
返回类型

int

Returns a bitfield to be used to check for mouse buttons that may be accompanying the wheel event.

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. isAccepted ( )
返回类型

bool

Returns whether the event was accepted.

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. modifiers ( )
返回类型

Modifiers

Returns the keyboard modifiers that may be accompanying the wheel event.

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. setAccepted ( accepted )
参数

accepted bool

Sets the event as accepted if accepted 为 true。

注意

When an event is accepted, it will prevent further propagation to other listeners.

另请参阅

isAccepted()

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. type ( )
返回类型

Type

返回 Type of the event.

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. x ( )
返回类型

int

Returns the x position of the mouse event.

PySide2.Qt3DInput.Qt3DInput.QWheelEvent. y ( )
返回类型

int

Returns the x position of the mouse event.