QGraphicsSceneResizeEvent Class
La clase QGraphicsSceneResizeEvent proporciona eventos para el redimensionamiento de widgets en el marco de la vista gráfica. Más...
| Cabecera: | #include <QGraphicsSceneResizeEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets)target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Hereda: | 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 su geometría cambia.
Es similar a QResizeEvent, pero sus tamaños, oldSize() y newSize(), utilizan QSizeF en lugar de QSize.
Véase también QGraphicsWidget::setGeometry() y QGraphicsWidget::resize().
Documentación de las funciones miembro
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()
Construye un 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 antiguo (es decir, el tamaño inmediatamente anterior al cambio de 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.