Nesta página

QResizeEvent Class

A classe QResizeEvent contém parâmetros de evento para eventos de redimensionamento. Mais...

Cabeçalho: #include <QResizeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Herdado de: QEvent

Funções públicas

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

Funções protegidas

QResizeEvent(QResizeEvent &&)
QResizeEvent &operator=(QResizeEvent &&)
QResizeEvent &operator=(const QResizeEvent &other)

Descrição detalhada

Os eventos de redimensionamento são enviados aos widgets que foram redimensionados.

O manipulador de eventos QWidget::resizeEvent() recebe eventos de redimensionamento.

Veja também QWidget::resize() e QWidget::setGeometry().

Documentação das funções de membro

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

Cria um evento de redimensionamento com os tamanhos novo e antigo do widget, size e oldSize, respectivamente.

[protected delete] QResizeEvent::QResizeEvent(QResizeEvent &&)

Cria uma instância de ` QResizeEvent` por meio da função `move`. Essa função foi excluída.

const QSize &QResizeEvent::oldSize() const

Retorna o tamanho anterior do widget.

const QSize &QResizeEvent::size() const

Retorna o novo tamanho do widget. Isso equivale a chamar ` QWidget::size()`.

[protected delete] QResizeEvent &QResizeEvent::operator=(QResizeEvent &&)

A função “Move-assigns” atribui o objeto “ other ” a esta instância “ QResizeEvent ”. Essa função é excluída.

[noexcept protected default] QResizeEvent &QResizeEvent::operator=(const QResizeEvent &other)

Copia e atribui ` other ` a esta instância de ` QResizeEvent `.

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