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 ().
Constructs a move event with the new and old widget positions, pos and oldPos 分别。
Returns the old position of the widget.
Returns the new position of the widget. This excludes the window frame for top level widgets.