Qt 4.8
|
The QResizeEvent class contains event parameters for resize events. More...
#include <qevent.h>
Public Functions | |
const QSize & | oldSize () const |
Returns the old size of the widget. More... | |
QResizeEvent (const QSize &size, const QSize &oldSize) | |
Constructs a resize event with the new and old widget sizes, size and oldSize respectively. More... | |
const QSize & | size () const |
Returns the new size of the widget. More... | |
~QResizeEvent () | |
Public Functions inherited from QEvent | |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). More... | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). More... | |
bool | isAccepted () const |
QEvent (Type type) | |
Contructs an event object of type type. More... | |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false. More... | |
Type | type () const |
Returns the event type. More... | |
virtual | ~QEvent () |
Destroys the event. More... | |
Protected Variables | |
QSize | olds |
QSize | s |
Protected Variables inherited from QEvent | |
QEventPrivate * | d |
ushort | t |
Friends | |
class | QApplication |
class | QCoreApplication |
The QResizeEvent class contains event parameters for resize events.
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 1447 of file qevent.cpp.
QResizeEvent::~QResizeEvent | ( | ) |
Definition at line 1454 of file qevent.cpp.
|
inline |
Returns the old size of the widget.
Definition at line 356 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 355 of file qevent.h.
Referenced by QMenuBar::eventFilter(), QWorkspaceChild::eventFilter(), QDeclarativeView::resizeEvent(), QMdiArea::resizeEvent(), QListView::resizeEvent(), QWizard::resizeEvent(), QPlainTextEdit::resizeEvent(), QTextEdit::resizeEvent(), and QLayout::widgetEvent().
|
friend |
|
friend |