En esta página

QChildWindowEvent Class

La clase QChildWindowEvent contiene parametros de eventos para cambios de ventanas child. Más...

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

Funciones Públicas

QChildWindowEvent(QEvent::Type type, QWindow *childWindow)
QWindow *child() const

Descripción Detallada

Los eventos de ventana hija se envían a las ventanas cuando se añaden o eliminan hijos.

En ambos casos sólo se puede confiar en que el hijo sea un QWindow - no cualquier subclase del mismo. Esto se debe a que en el caso de QEvent::ChildWindowAdded la subclase aún no está completamente construida, y en el caso de QEvent::ChildWindowRemoved puede que ya haya sido destruida.

Documentación de las funciones miembro

[explicit] QChildWindowEvent::QChildWindowEvent(QEvent::Type type, QWindow *childWindow)

Construye un objeto de evento de ventana hijo de un type particular para el childWindow.

type puede ser QEvent::ChildWindowAdded o QEvent::ChildWindowRemoved.

Véase también child().

QWindow *QChildWindowEvent::child() const

Devuelve la ventana hija que se ha añadido o eliminado.

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