QChildWindowEvent Class
La clase QChildWindowEvent contiene parámetros de evento para los cambios en las ventanas secundarias. Más información...
| Encabezado: | #include <QChildWindowEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Desde: | Qt 6.7 |
| Heredado de: | QEvent |
- Lista de todos los miembros, incluidos los heredados
- QChildWindowEvent forma parte de las clases de eventos.
Funciones públicas
| QChildWindowEvent(QEvent::Type type, QWindow *childWindow) | |
| QWindow * | child() const |
Funciones protegidas
| QChildWindowEvent(QChildWindowEvent &&) | |
| QChildWindowEvent & | operator=(QChildWindowEvent &&) |
| QChildWindowEvent & | operator=(const QChildWindowEvent &other) |
Descripción detallada
Los eventos de ventanas secundarias se envían a las ventanas cuando se añaden o se eliminan ventanas secundarias.
En ambos casos, solo se puede dar por hecho que la ventana secundaria es un objeto de tipo ` QWindow `, y no cualquier subclase del mismo. Esto se debe a que, en el caso de ` QEvent::ChildWindowAdded `, la subclase aún no se ha construido por completo, y en el caso de ` QEvent::ChildWindowRemoved `, es posible que ya se haya destruido.
Documentación de las funciones miembro
[explicit] QChildWindowEvent::QChildWindowEvent(QEvent::Type type, QWindow *childWindow)
Crea un objeto de eventos de una ventana secundaria de un type concreto para el childWindow.
type Puede ser QEvent::ChildWindowAdded o QEvent::ChildWindowRemoved.
Véase también child().
[protected delete] QChildWindowEvent::QChildWindowEvent(QChildWindowEvent &&)
Crea una instancia de ` QChildWindowEvent`. Esta función se ha eliminado.
QWindow *QChildWindowEvent::child() const
Devuelve la ventana secundaria que se ha añadido o eliminado.
[protected delete] QChildWindowEvent &QChildWindowEvent::operator=(QChildWindowEvent &&)
Asigna « other » a esta instancia de « QChildWindowEvent ». Esta función se elimina.
[noexcept protected default] QChildWindowEvent &QChildWindowEvent::operator=(const QChildWindowEvent &other)
Asigna por copia other a esta instancia 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.