CopperSpice API
1.9.2
|
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view system. More...
Public Methods | |
QGraphicsSceneResizeEvent () | |
~QGraphicsSceneResizeEvent () | |
QSizeF | newSize () const |
QSizeF | oldSize () const |
Public Methods inherited from QGraphicsSceneEvent | |
~QGraphicsSceneEvent () | |
QWidget * | widget () 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) |
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.
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent | ( | ) |
Constructs a QGraphicsSceneResizeEvent.
QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent | ( | ) |
Destroys the QGraphicsSceneResizeEvent.
QSizeF QGraphicsSceneResizeEvent::newSize | ( | ) | const |
Returns the new size (i.e., the current size).
QSizeF QGraphicsSceneResizeEvent::oldSize | ( | ) | const |
Returns the old size (i.e., the size immediately before the widget was resized).