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

    上一话题

    QGraphicsSceneMouseEvent

    下一话题

    QGraphicsSceneResizeEvent

    QGraphicsSceneMoveEvent

    概要

    函数

    详细描述

    PySide.QtGui.QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework.

    A PySide.QtGui.QGraphicsWidget sends itself a PySide.QtGui.QGraphicsSceneMoveEvent immediately when its local position changes. The delivery is implemented as part of QGraphicsItem.itemChange() .

    It's similar to PySide.QtGui.QMoveEvent , but its positions, PySide.QtGui.QGraphicsSceneMoveEvent.oldPos() and PySide.QtGui.QGraphicsSceneMoveEvent.newPos() ,使用 PySide.QtCore.QPointF 而不是 PySide.QtCore.QPoint .

    另请参阅

    QGraphicsItem.setPos() QGraphicsItem.ItemPositionChange QGraphicsItem.ItemPositionHasChanged

    class PySide.QtGui. QGraphicsSceneMoveEvent

    构造 PySide.QtGui.QGraphicsSceneMoveEvent .

    PySide.QtGui.QGraphicsSceneMoveEvent. newPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the new position (i.e., the current position).

    PySide.QtGui.QGraphicsSceneMoveEvent. oldPos ( )
    返回类型: PySide.QtCore.QPointF

    Returns the old position (i.e., the position immediately before the widget was moved).

    PySide.QtGui.QGraphicsSceneMoveEvent. setNewPos ( pos )
    参数: pos PySide.QtCore.QPointF
    PySide.QtGui.QGraphicsSceneMoveEvent. setOldPos ( pos )
    参数: pos PySide.QtCore.QPointF