![]() |
Qt 6.x
The Qt SDK
|
The QResizeEvent class contains event parameters for resize events. More...
#include <qevent.h>
Inheritance diagram for QResizeEvent:
Collaboration diagram for QResizeEvent:Public Member Functions | |
| QResizeEvent (const QSize &size, const QSize &oldSize) | |
| Constructs a resize event with the new and old widget sizes, size and oldSize respectively. | |
| const QSize & | size () const |
| Returns the new size of the widget. | |
| const QSize & | oldSize () const |
| Returns the old size 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 | |
| QSize | m_size |
| QSize | m_oldSize |
Protected Attributes inherited from QEvent | |
| quint16 | t |
Friends | |
| class | QApplication |
The QResizeEvent class contains event parameters for resize events.
\inmodule QtGui
Resize events are sent to widgets that have been resized.
The event handler QWidget::resizeEvent() receives resize events.
Constructs a resize event with the new and old widget sizes, size and oldSize respectively.
Definition at line 1794 of file qevent.cpp.
|
inline |
|
inline |
Returns the new size of the widget.
This is the same as QWidget::size().
Definition at line 552 of file qevent.h.
Referenced by QApplication::compressEvent(), operator<<(), and QQuickWindow::resizeEvent().
Here is the caller graph for this function:
|
friend |