문서 구조
문서 구조화 명령은 문서를 섹션으로 나누기 위한 명령입니다. QDoc은 네 가지 수준의 섹션을 지원합니다: \section1
, \section2
, \section3
, \section4
입니다. 섹션 명령은 개요에 사용되는 기존의 섹션, 하위 섹션 등에 해당합니다.
섹션 명령
일반적으로 문서 구조화 명령은 첫 줄 바꿈까지 그 뒤에 오는 모든 내용을 인자로 간주합니다. 인수는 단위의 제목으로 렌더링됩니다. 제목이 여러 줄에 걸쳐 있어야 하는 경우 마지막 줄을 제외한 각 줄이 백슬래시로 끝나야 합니다.
QDoc의 섹션에는 \section1
, \section2
, \section3
및 \section4
의 총 네 가지 레벨이 있습니다. 이는 기존의 섹션, 하위 섹션, 하위 섹션 및 하위 하위 섹션에 해당합니다.
섹션 단위에는 엄격한 순서가 있습니다:
section1 | section2 | section3 | section4
섹션을 사용하는 경우 첫 번째 섹션 명령은 section1
이어야 합니다.
/*! \section1 Basic Qt This is the first section. \section2 Getting Started This is the first subsection. \section3 Hello Qt This is the first subsubsection. \section3 Making Connections This is the second subsubsection. \section3 Using the Reference Documentation This is the third subsubsection. \section2 Creating Dialogs This is the second subsection. \section3 Subclassing QDialog This is the first subsubsection. ... \section1 Intermediate Qt This is the second section. \section2 Layout Management This is the second section's first subsection. \section3 Basic Layouts This is the first subsubsection. ... */
각 섹션은 문서의 논리적 단위입니다. 섹션 제목은 일반적으로 페이지의 오른쪽 상단에 표시되는 자동 생성된 목차에 나타납니다.
\섹션1
section1 명령은 새 섹션을 시작합니다.
다양한 섹션 단위, 명령 인수 및 렌더링에 대한 설명은 섹션 명령을 참조하세요.
\섹션2
섹션2 명령은 새 섹션을 시작합니다.
다양한 섹션 단위, 명령 인수 및 렌더링에 대한 설명은 섹션 명령을 참조하세요.
\섹션3
section3 명령은 새 섹션을 시작합니다.
다양한 섹션 단위, 명령 인수 및 렌더링에 대한 설명은 섹션 명령을 참조하세요.
\섹션4
section4 명령은 새 섹션을 시작합니다.
다양한 섹션 단위, 명령 인수 및 렌더링에 대한 설명은 섹션 명령을 참조하세요.
© 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.