The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS Widgets) |
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
|qmake:||QT += widgets|
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
Constructs a QGraphicsSceneResizeEvent.
Destroys the QGraphicsSceneResizeEvent.
QSizeF QGraphicsSceneResizeEvent::newSize() const
Returns the new size (i.e., the current size).
See also oldSize() and QGraphicsWidget::resize().
QSizeF QGraphicsSceneResizeEvent::oldSize() const
Returns the old size (i.e., the size immediately before the widget was resized).
See also newSize() and QGraphicsWidget::resize().
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.