QGraphicsSceneResizeEvent Class
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework. \since
4.4 \ingroup
graphicsview-api \inmodule
QtWidgets. More...
Header: | #include <QGraphicsSceneResizeEvent> |
Inherits: | QGraphicsSceneEvent |
Public Functions
QGraphicsSceneResizeEvent() | |
virtual | ~QGraphicsSceneResizeEvent() |
QSizeF | newSize() const |
QSizeF | oldSize() const |
void | setNewSize(const QSizeF &size) |
void | setOldSize(const QSizeF &size) |
Detailed Description
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.
See also QGraphicsWidget::setGeometry() and QGraphicsWidget::resize().
Member Function Documentation
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()
Constructs a QGraphicsSceneResizeEvent.
[virtual noexcept]
QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()
Destroys the QGraphicsSceneResizeEvent.
QSizeF QGraphicsSceneResizeEvent::newSize() const
Returns the new size (i.e., the current size).
See also setNewSize(), oldSize(), and QGraphicsWidget::resize().
QSizeF QGraphicsSceneResizeEvent::oldSize() const
Returns the old size (i.e., the size immediately before the widget was resized).
See also setOldSize(), newSize(), and QGraphicsWidget::resize().
void QGraphicsSceneResizeEvent::setNewSize(const QSizeF &size)
\internal
See also newSize().
void QGraphicsSceneResizeEvent::setOldSize(const QSizeF &size)
\internal
See also oldSize().