Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
The QResizeEvent class contains event parameters for resize events. More...
#include <qevent.h>
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 1797 of file qevent.cpp.
|
inline |
Returns the old size of the widget.
Definition at line 554 of file qevent.h.
Referenced by QListView::resizeEvent(), QPlainTextEdit::resizeEvent(), and QTextEdit::resizeEvent().
|
inline |
Returns the new size of the widget.
This is the same as QWidget::size().
Definition at line 553 of file qevent.h.
Referenced by QApplication::compressEvent(), QQuickWidget::resizeEvent(), QOpenGLWidget::resizeEvent(), QListView::resizeEvent(), QRhiWidget::resizeEvent(), QPlainTextEdit::resizeEvent(), and QTextEdit::resizeEvent().
|
friend |