CopperSpice API  1.9.1
QGraphicsSceneResizeEvent Class Reference

The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view system. More...

Inheritance diagram for QGraphicsSceneResizeEvent:
QGraphicsSceneEvent QEvent

Public Methods

 QGraphicsSceneResizeEvent ()
 
 ~QGraphicsSceneResizeEvent ()
 
QSizeF newSize () const
 
QSizeF oldSize () const
 
- Public Methods inherited from QGraphicsSceneEvent
 ~QGraphicsSceneEvent ()
 
QWidgetwidget () 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
 

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 QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view system. A QGraphicsWidget sends itself a QGraphicsSceneResizeEvent immediately when its geometry changes. This is similar to QResizeEvent, however the sizes, oldSize() and newSize(), use QSizeF instead of QSize.

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

Constructor & Destructor Documentation

QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent ( )

Constructs a QGraphicsSceneResizeEvent.

QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent ( )

Destroys the QGraphicsSceneResizeEvent.

Method Documentation

QSizeF QGraphicsSceneResizeEvent::newSize ( ) const

Returns the new size (i.e., the current size).

See also
oldSize(), QGraphicsWidget::resize()
QSizeF QGraphicsSceneResizeEvent::oldSize ( ) const

Returns the old size (i.e., the size immediately before the widget was resized).

See also
newSize(), QGraphicsWidget::resize()