详细描述
-
class
PySide.QtGui.
QGraphicsSceneWheelEvent
(
[
type=None
]
)
-
|
参数:
|
type
–
PySide.QtCore.QEvent.Type
|
构造
PySide.QtGui.QGraphicsSceneWheelEvent
of type
type
, which is always
QEvent.GraphicsSceneWheel
.
-
PySide.QtGui.QGraphicsSceneWheelEvent.
buttons
(
)
-
|
返回类型:
|
PySide.QtCore.Qt.MouseButtons
|
Returns the mouse buttons that were pressed when the wheel event occurred.
-
PySide.QtGui.QGraphicsSceneWheelEvent.
delta
(
)
-
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).
-
PySide.QtGui.QGraphicsSceneWheelEvent.
modifiers
(
)
-
|
返回类型:
|
PySide.QtCore.Qt.KeyboardModifiers
|
Returns the keyboard modifiers that were active when the wheel event occurred.
-
PySide.QtGui.QGraphicsSceneWheelEvent.
orientation
(
)
-
|
返回类型:
|
PySide.QtCore.Qt.Orientation
|
Returns the wheel orientation.
-
PySide.QtGui.QGraphicsSceneWheelEvent.
pos
(
)
-
Returns the position of the cursor in item coordinates when the wheel event occurred.
-
PySide.QtGui.QGraphicsSceneWheelEvent.
scenePos
(
)
-
Returns the position of the cursor in scene coordinates when the wheel event occurred.
-
PySide.QtGui.QGraphicsSceneWheelEvent.
screenPos
(
)
-
Returns the position of the cursor in screen coordinates when the wheel event occurred.
-
PySide.QtGui.QGraphicsSceneWheelEvent.
setButtons
(
buttons
)
-
|
参数:
|
buttons
–
PySide.QtCore.Qt.MouseButtons
|
-
PySide.QtGui.QGraphicsSceneWheelEvent.
setDelta
(
delta
)
-
|
参数:
|
delta
–
PySide.QtCore.int
|
-
PySide.QtGui.QGraphicsSceneWheelEvent.
setModifiers
(
modifiers
)
-
|
参数:
|
modifiers
–
PySide.QtCore.Qt.KeyboardModifiers
|
-
PySide.QtGui.QGraphicsSceneWheelEvent.
setOrientation
(
orientation
)
-
|
参数:
|
orientation
–
PySide.QtCore.Qt.Orientation
|
-
PySide.QtGui.QGraphicsSceneWheelEvent.
setPos
(
pos
)
-
-
PySide.QtGui.QGraphicsSceneWheelEvent.
setScenePos
(
pos
)
-
-
PySide.QtGui.QGraphicsSceneWheelEvent.
setScreenPos
(
pos
)
-