QDomComment Class
QDomComment 클래스는 XML 주석을 나타냅니다. 더 보기...
| 헤더: | #include <QDomComment> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Xml) target_link_libraries(mytarget PRIVATE Qt6::Xml) |
| qmake: | QT += xml |
| 상속: | QDomCharacterData |
- 상속받은 멤버를 포함한 모든 멤버 목록
- QDomComment는 XML 클래스의 일부입니다.
참고: 이 클래스의 모든 함수는 재진입 가능합니다.
공개 함수
| QDomComment() | |
| QDomComment(const QDomComment &comment) | |
| QDomNode::NodeType | nodeType() const |
| QDomComment & | operator=(const QDomComment &other) |
상세 설명
다음과 같은 구문 분석된 XML의 주석은
<!-- this is a comment -->와 같은 주석은 구문 분석된 DOM 트리에서 QDomComment 객체로 표현됩니다.
Document Object Model에 대한 자세한 내용은 레벨 1 및 레벨 2 코어를 참조하십시오. DOM 구현에 대한 보다 일반적인 소개는 QDomDocument 문서를 참조하십시오.
멤버 함수 문서
QDomComment::QDomComment()
빈 주석을 생성합니다. 내용이 포함된 주석을 생성하려면 ` QDomDocument::createComment()` 함수를 사용하십시오.
QDomComment::QDomComment(const QDomComment &comment)
comment 의 복사본을 생성합니다.
복사본의 데이터는 공유됩니다(얕은 복사): 한 노드를 수정하면 다른 노드도 함께 변경됩니다. 깊은 복사를 하려면 cloneNode()를 사용하십시오.
QDomNode::NodeType QDomComment::nodeType() const
CommentNode 를 반환합니다.
QDomComment &QDomComment::operator=(const QDomComment &other)
이 DOM 주석에 ` other `을 할당합니다.
복사된 데이터는 공유됩니다(얕은 복사): 한 노드를 수정하면 다른 노드도 함께 변경됩니다. 깊은 복사를 하려면 ` cloneNode()`를 사용하십시오.
© 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.