QMoveEventclass contains event parameters for move events. 更多 …
Move events are sent to widgets that have been moved to a new position relative to their parent.
事件处理程序
moveEvent()receives move events.另请参阅
move()setGeometry()
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.