CopperSpice API  1.9.2
QResizeEvent Class Reference

The QResizeEvent class contains event parameters for resize events. More...

Inheritance diagram for QResizeEvent:
QEvent

Public Methods

 QResizeEvent (const QSize &size, const QSize &oldSize)
 
const QSizeoldSize () const
 
const QSizesize () const
 
- Public Methods inherited from QEvent
 QEvent (const QEvent &other)
 
 QEvent (Type type)
 
virtual ~QEvent ()
 
void accept ()
 
void ignore ()
 
bool isAccepted () const
 
QEvent & operator= (const QEvent &other)
 
void setAccepted (bool accepted)
 
bool spontaneous () const
 
Type type () const
 

Friends

class QApplication
 
class QCoreApplication
 

Additional Inherited Members

- Public Types inherited from QEvent
enum  Type
 
- Static Public Methods inherited from QEvent
static int registerEventType (int hint=-1)
 

Detailed Description

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.

See also
QWidget::resize(), QWidget::setGeometry()

Constructor & Destructor Documentation

QResizeEvent::QResizeEvent ( const QSize size,
const QSize oldSize 
)

Constructs a resize event with the new and old widget sizes, size and oldSize respectively.

Method Documentation

const QSize & QResizeEvent::oldSize ( ) const
inline

Returns the old size of the widget.

const QSize & QResizeEvent::size ( ) const
inline

Returns the new size of the widget. This is the same as QWidget::size().