QChildWindowEvent Class

QChildWindowEvent 클래스에는 자식 창 변경에 대한 이벤트 매개 변수가 포함되어 있습니다. 더 보기...

Header: #include <QChildWindowEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
이후: Qt 6.7
상속합니다: QEvent

공용 함수

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

상세 설명

자식 창 이벤트는 자식이 추가되거나 제거될 때 창으로 전송됩니다.

두 경우 모두 자식이 QWindow 인 경우에만 의존할 수 있으며 그 하위 클래스는 사용할 수 없습니다. 이는 QEvent::ChildWindowAdded 의 경우 서브클래스가 아직 완전히 생성되지 않았고 QEvent::ChildWindowRemoved 의 경우 이미 소멸되었을 수 있기 때문입니다.

멤버 함수 문서

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

childWindow 에 대한 특정 type 의 자식 창 이벤트 객체를 구성합니다.

type QEvent::ChildWindowAdded 또는 QEvent::ChildWindowRemoved 일 수 있습니다.

child()도 참조하세요 .

QWindow *QChildWindowEvent::child() const

추가 또는 제거된 자식 창을 반환합니다.

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