Nesta página

QHideEvent Class

A classe QHideEvent fornece um evento que é enviado após um widget ser ocultado. Mais...

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

Funções públicas

Funções protegidas

QHideEvent(QHideEvent &&)
QHideEvent &operator=(QHideEvent &&)
QHideEvent &operator=(const QHideEvent &other)

Descrição detalhada

Este evento é enviado imediatamente antes de ` QWidget::hide()` retornar e também quando uma janela de nível superior é ocultada (iconizada) pelo usuário.

Se ` spontaneous()` for `true`, o evento se originou fora do aplicativo. Nesse caso, o usuário ocultou a janela usando os controles do gerenciador de janelas, seja iconizando a janela ou alternando para outra área de trabalho virtual onde a janela não está visível. A janela ficará oculta, mas não será removida. Se a janela foi iconizada, ` QWidget::isMinimized()` retorna ` true`.

Veja também ` QShowEvent`.

Documentação da função membro

QHideEvent::QHideEvent()

Cria um objeto QHideEvent.

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

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

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

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

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

Copia e atribui other a esta instância QHideEvent.

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