QGraphicsSceneResizeEvent Class▲
-
Header: QGraphicsSceneResizeEvent
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
-
qmake: QT += widgets
-
Inherits: QGraphicsSceneEvent
-
Group: QGraphicsSceneResizeEvent is part of graphicsview-api
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▲
See also QGraphicsWidget::setGeometry(), QGraphicsWidget::resize()
Member Function Documentation▲
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()▲
Constructs a QGraphicsSceneResizeEvent.
[virtual] QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()▲
Destroys the QGraphicsSceneResizeEvent.
QSizeF QGraphicsSceneResizeEvent::newSize() const▲
Returns the new size (i.e., the current size).
See Also▲
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▲
See also newSize(), QGraphicsWidget::resize()