![]() |
Qt 6.x
The Qt SDK
|
The QMoveEvent class contains event parameters for move events. More...
#include <qevent.h>
Inheritance diagram for QMoveEvent:
Collaboration diagram for QMoveEvent:Public Member Functions | |
| QMoveEvent (const QPoint &pos, const QPoint &oldPos) | |
| Constructs a move event with the new and old widget positions, pos and oldPos respectively. | |
| const QPoint & | pos () const |
| Returns the new position of the widget. | |
| const QPoint & | oldPos () const |
| Returns the old position of the widget. | |
Public Member Functions inherited from QEvent | |
| QEvent (Type type) | |
| Constructs an event object of type type. | |
| virtual | ~QEvent () |
| Destroys the event. | |
| Type | type () const |
| Returns the event type. | |
| bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false. | |
| virtual void | setAccepted (bool accepted) |
| bool | isAccepted () const |
| void | accept () |
| Sets the accept flag of the event object, the equivalent of calling setAccepted(true). | |
| void | ignore () |
| Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). | |
| bool | isInputEvent () const noexcept |
| bool | isPointerEvent () const noexcept |
| bool | isSinglePointEvent () const noexcept |
| virtual QEvent * | clone () const |
| Creates and returns an identical copy of this event. | |
Protected Attributes | |
| QPoint | m_pos |
| QPoint | m_oldPos |
Protected Attributes inherited from QEvent | |
| quint16 | t |
Friends | |
| class | QApplication |
The QMoveEvent class contains event parameters for move events.
\inmodule QtGui
Move events are sent to widgets that have been moved to a new position relative to their parent.
The event handler QWidget::moveEvent() receives move events.
Constructs a move event with the new and old widget positions, pos and oldPos respectively.
Definition at line 1672 of file qevent.cpp.
|
inline |
|
inline |
Returns the new position of the widget.
This excludes the window frame for top level widgets.
Definition at line 506 of file qevent.h.
Referenced by QApplication::compressEvent(), and operator<<().
Here is the caller graph for this function:
|
friend |