Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework. More...
#include <qgraphicssceneevent.h>
Public Member Functions | |
QGraphicsSceneResizeEvent () | |
Constructs a QGraphicsSceneResizeEvent. | |
~QGraphicsSceneResizeEvent () | |
Destroys the QGraphicsSceneResizeEvent. | |
QSizeF | oldSize () const |
Returns the old size (i.e., the size immediately before the widget was resized). | |
void | setOldSize (const QSizeF &size) |
QSizeF | newSize () const |
Returns the new size (i.e., the current size). | |
void | setNewSize (const QSizeF &size) |
Public Member Functions inherited from QGraphicsSceneEvent | |
QGraphicsSceneEvent (Type type) | |
~QGraphicsSceneEvent () | |
Destroys the event. | |
QWidget * | widget () const |
Returns the widget where the event originated, or \nullptr if the event originates from another application. | |
void | setWidget (QWidget *widget) |
quint64 | timestamp () const |
void | setTimestamp (quint64 ts) |
Public Member Functions inherited from QEvent | |
QEvent (Type type) | |
Constructs an event object of type type. | |
virtual | ~QEvent () |
Destroys the event. | |
Type | type () const |
Returns the event type. | |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false . | |
virtual void | setAccepted (bool accepted) |
bool | isAccepted () const |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). | |
bool | isInputEvent () const noexcept |
bool | isPointerEvent () const noexcept |
bool | isSinglePointEvent () const noexcept |
virtual QEvent * | clone () const |
Creates and returns an identical copy of this event. | |
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 265 of file qgraphicssceneevent.h.
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent | ( | ) |
Constructs a QGraphicsSceneResizeEvent.
Definition at line 1664 of file qgraphicssceneevent.cpp.
QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent | ( | ) |
Destroys the QGraphicsSceneResizeEvent.
Definition at line 1672 of file qgraphicssceneevent.cpp.
QSizeF QGraphicsSceneResizeEvent::newSize | ( | ) | const |
Returns the new size (i.e., the current size).
Definition at line 1702 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 1682 of file qgraphicssceneevent.cpp.
Definition at line 1711 of file qgraphicssceneevent.cpp.
Definition at line 1691 of file qgraphicssceneevent.cpp.