QChildWindowEvent Class
A classe QChildWindowEvent contém parâmetros de evento para alterações nas janelas filhas. Mais...
| Cabeçalho: | #include <QChildWindowEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Desde: | Qt 6.7 |
| Herdado de: | QEvent |
- Lista de todos os membros, incluindo os herdados
- QChildWindowEvent faz parte das Classes de Eventos.
Funções públicas
| QChildWindowEvent(QEvent::Type type, QWindow *childWindow) | |
| QWindow * | child() const |
Funções protegidas
| QChildWindowEvent(QChildWindowEvent &&) | |
| QChildWindowEvent & | operator=(QChildWindowEvent &&) |
| QChildWindowEvent & | operator=(const QChildWindowEvent &other) |
Descrição detalhada
Os eventos de janelas filhas são enviados às janelas quando janelas filhas são adicionadas ou removidas.
Em ambos os casos, você só pode contar com o fato de que a janela filha seja uma ` QWindow ` — e não qualquer subclasse dela. Isso ocorre porque, no caso de ` QEvent::ChildWindowAdded `, a subclasse ainda não está totalmente construída, e no caso de ` QEvent::ChildWindowRemoved `, ela já pode ter sido destruída.
Documentação das funções de membro
[explicit] QChildWindowEvent::QChildWindowEvent(QEvent::Type type, QWindow *childWindow)
Cria um objeto de evento de janela secundária de um determinado type para o childWindow.
type pode ser QEvent::ChildWindowAdded ou QEvent::ChildWindowRemoved.
Veja também child().
[protected delete] QChildWindowEvent::QChildWindowEvent(QChildWindowEvent &&)
Cria uma instância de ` QChildWindowEvent` por meio da função `move`. Essa função foi excluída.
QWindow *QChildWindowEvent::child() const
Retorna a janela secundária que foi adicionada ou removida.
[protected delete] QChildWindowEvent &QChildWindowEvent::operator=(QChildWindowEvent &&)
A função “Move-assigns” atribui “ other ” a esta instância de “ QChildWindowEvent ”. Essa função é excluída.
[noexcept protected default] QChildWindowEvent &QChildWindowEvent::operator=(const QChildWindowEvent &other)
Copia e atribui ` other ` a esta instância de ` QChildWindowEvent `.
© 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.