• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QGraphicsSceneEvent

    下一话题

    QGraphicsSceneMouseEvent

    QGraphicsSceneWheelEvent

    概要

    函数

    详细描述

    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 ( )
    返回类型: PySide.QtCore.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).

    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 ( )
    返回类型: PySide.QtCore.QPointF

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

    PySide.QtGui.QGraphicsSceneWheelEvent. scenePos ( )
    返回类型: PySide.QtCore.QPointF

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

    PySide.QtGui.QGraphicsSceneWheelEvent. screenPos ( )
    返回类型: PySide.QtCore.QPoint

    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 )
    参数: pos PySide.QtCore.QPointF
    PySide.QtGui.QGraphicsSceneWheelEvent. setScenePos ( pos )
    参数: pos PySide.QtCore.QPointF
    PySide.QtGui.QGraphicsSceneWheelEvent. setScreenPos ( pos )
    参数: pos PySide.QtCore.QPoint