QChildEvent Class
QChildEvent 클래스에는 자식 객체 이벤트에 대한 이벤트 매개 변수가 포함되어 있습니다. 더 보기...
Header: | #include <QChildEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
상속합니다: | QEvent |
- 상속된 멤버를 포함한 모든 멤버 목록
- QChildEvent는 이벤트 클래스의 일부입니다.
공용 함수
QChildEvent(QEvent::Type type, QObject *child) | |
bool | added() const |
QObject * | child() const |
bool | polished() const |
bool | removed() const |
자세한 설명
자식 이벤트는 자식이 추가되거나 제거될 때 즉시 객체에 전송됩니다.
두 경우 모두 자식이 QObject (또는 QObject::isWidgetType()가 true
, QWidget)를 반환하는 경우에만 의존할 수 있습니다. QEvent::ChildAdded 의 경우 자식이 아직 완전히 구성되지 않았고 QEvent::ChildRemoved 의 경우 이미 소멸되었을 수 있기 때문입니다.
이러한 이벤트의 핸들러는 QObject::childEvent()입니다.
멤버 함수 문서
QChildEvent::QChildEvent(QEvent::Type type, QObject *child)
child 에 대한 특정 type 의 자식 이벤트 객체를 구성합니다.
type QEvent::ChildAdded , QEvent::ChildRemoved, 또는 QEvent::ChildPolished 일 수 있습니다.
child()도 참조하세요 .
bool QChildEvent::added() const
type()가 QEvent::ChildAdded 인 경우 true
을 반환하고, 그렇지 않으면 false를 반환합니다.
QObject *QChildEvent::child() const
추가 또는 제거된 자식 객체를 반환합니다.
bool QChildEvent::polished() const
type()가 QEvent::ChildPolished 인 경우 true
을 반환하고, 그렇지 않으면 false를 반환합니다.
bool QChildEvent::removed() const
type()가 QEvent::ChildRemoved 인 경우 true
을 반환하고, 그렇지 않으면 false를 반환합니다.
© 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.