内容表

上一话题

QMouseEvent

下一话题

QMovie

QMoveEvent

QMoveEvent class contains event parameters for move events. 更多

Inheritance diagram of PySide2.QtGui.QMoveEvent

概要

函数

详细描述

Move events are sent to widgets that have been moved to a new position relative to their parent.

事件处理程序 moveEvent() receives move events.

另请参阅

move() setGeometry()

class QMoveEvent ( pos , oldPos )
param pos

QPoint

param oldPos

QPoint

Constructs a move event with the new and old widget positions, pos and oldPos 分别。

PySide2.QtGui.QMoveEvent. oldPos ( )
返回类型

QPoint

Returns the old position of the widget.

PySide2.QtGui.QMoveEvent. pos ( )
返回类型

QPoint

Returns the new position of the widget. This excludes the window frame for top level widgets.