En esta página

QResizeEvent Class

La clase QResizeEvent contiene parametros para eventos de redimensionamiento. Más...

Cabecera: #include <QResizeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Hereda: QEvent

Funciones Públicas

QResizeEvent(const QSize &size, const QSize &oldSize)
const QSize &oldSize() const
const QSize &size() const

Descripción Detallada

Los eventos de redimensionamiento son enviados a los widgets que han sido redimensionados.

El manejador de eventos QWidget::resizeEvent() recibe eventos de redimensionamiento.

Ver también QWidget::resize() y QWidget::setGeometry().

Documentación de Funciones Miembro

QResizeEvent::QResizeEvent(const QSize &size, const QSize &oldSize)

Construye un evento de redimensionamiento con los tamaños nuevo y antiguo del widget, size y oldSize respectivamente.

const QSize &QResizeEvent::oldSize() const

Devuelve el tamaño antiguo del widget.

const QSize &QResizeEvent::size() const

Devuelve el nuevo tamaño del widget. Es lo mismo que QWidget::size().

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