QMoveEvent 类

QMoveEvent class contains event parameters for move events. 更多...

头: #include <QMoveEvent>
qmake: QT += gui
继承: QEvent

公共函数

QMoveEvent (const QPoint & pos , const QPoint & oldPos )
const QPoint & oldPos () const
const QPoint & pos () const

额外继承成员

详细描述

QMoveEvent class contains event parameters for move events.

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

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

另请参阅 QWidget::move () 和 QWidget::setGeometry ().

成员函数文档编制

QMoveEvent:: QMoveEvent (const QPoint & pos , const QPoint & oldPos )

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

const QPoint &QMoveEvent:: oldPos () const

Returns the old position of the widget.

const QPoint &QMoveEvent:: pos () const

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