En esta página

QGraphicsSceneResizeEvent Class

La clase `QGraphicsSceneResizeEvent` proporciona eventos relacionados con el cambio de tamaño de los widgets en el marco de trabajo de la vista gráfica. Más información...

Encabezado: #include <QGraphicsSceneResizeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
Heredado de: QGraphicsSceneEvent

Funciones públicas

QGraphicsSceneResizeEvent()
virtual ~QGraphicsSceneResizeEvent()
QSizeF newSize() const
QSizeF oldSize() const

Descripción detallada

Un ` QGraphicsWidget ` se envía a sí mismo un `QGraphicsSceneResizeEvent` inmediatamente cuando cambia su geometría.

Es similar a ` QResizeEvent`, pero sus métodos de tamaño, ` oldSize()` y ` newSize()`, utilizan ` QSizeF ` en lugar de ` QSize`.

Véase también QGraphicsWidget::setGeometry() y QGraphicsWidget::resize().

Documentación de funciones de miembro

QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()

Crea un objeto `QGraphicsSceneResizeEvent`.

[virtual noexcept] QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()

Destruye el « QGraphicsSceneResizeEvent ».

QSizeF QGraphicsSceneResizeEvent::newSize() const

Devuelve el nuevo tamaño (es decir, el tamaño actual).

Véase también oldSize() y QGraphicsWidget::resize().

QSizeF QGraphicsSceneResizeEvent::oldSize() const

Devuelve el tamaño anterior (es decir, el tamaño que tenía justo antes de que se modificara el tamaño del widget).

Véase también newSize() y QGraphicsWidget::resize().

© 2026 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.