QtBase
v6.3.1
|
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework. More...
#include <qgraphicssceneevent.h>
Public Member Functions | |
QGraphicsSceneResizeEvent () | |
~QGraphicsSceneResizeEvent () | |
QSizeF | oldSize () const |
void | setOldSize (const QSizeF &size) |
QSizeF | newSize () const |
void | setNewSize (const QSizeF &size) |
Public Member Functions inherited from QGraphicsSceneEvent | |
QGraphicsSceneEvent (Type type) | |
~QGraphicsSceneEvent () | |
QWidget * | widget () const |
void | setWidget (QWidget *widget) |
quint64 | timestamp () const |
void | setTimestamp (quint64 ts) |
Public Member Functions inherited from QEvent | |
QEvent (Type type) | |
virtual | ~QEvent () |
Type | type () const |
bool | spontaneous () const |
virtual void | setAccepted (bool accepted) |
bool | isAccepted () const |
void | accept () |
void | ignore () |
bool | isInputEvent () const noexcept |
bool | isPointerEvent () const noexcept |
bool | isSinglePointEvent () const noexcept |
virtual QEvent * | clone () const |
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework.
\inmodule QtWidgets
A QGraphicsWidget sends itself a QGraphicsSceneResizeEvent immediately when its geometry changes.
It's similar to QResizeEvent, but its sizes, oldSize() and newSize(), use QSizeF instead of QSize.
Definition at line 301 of file qgraphicssceneevent.h.
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent | ( | ) |
Constructs a QGraphicsSceneResizeEvent.
Definition at line 1700 of file qgraphicssceneevent.cpp.
QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent | ( | ) |
Destroys the QGraphicsSceneResizeEvent.
Definition at line 1708 of file qgraphicssceneevent.cpp.
QSizeF QGraphicsSceneResizeEvent::newSize | ( | ) | const |
Returns the new size (i.e., the current size).
Definition at line 1738 of file qgraphicssceneevent.cpp.
QSizeF QGraphicsSceneResizeEvent::oldSize | ( | ) | const |
Returns the old size (i.e., the size immediately before the widget was resized).
Definition at line 1718 of file qgraphicssceneevent.cpp.
Definition at line 1747 of file qgraphicssceneevent.cpp.
Definition at line 1727 of file qgraphicssceneevent.cpp.