QMoveEvent Class Reference

[ QtGui module]

QMoveEvent 类包含用于移动事件的事件参数。 更多...

继承 QEvent .

方法


详细描述

The QMoveEvent class contains event parameters for move 事件。

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

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


方法文档编制

QMoveEvent.__init__ ( self , QPoint   pos , QPoint   oldPos )

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

QMoveEvent.__init__ ( self , QMoveEvent )

QPoint QMoveEvent.oldPos ( self )

Returns the old position of the widget.

QPoint QMoveEvent.pos ( self )

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