문서 구조
문서 구조 지정 명령어는 문서를 여러 섹션으로 나누는 데 사용됩니다. 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.
...
*/각 섹션은 문서 내의 논리적 단위입니다. 섹션 제목은 일반적으로 페이지 우측 상단에 표시되는 자동으로 생성된 목차에 나타납니다.
\section1
\section1 명령을 사용하면 새로운 절을 시작할 수 있습니다.
다양한 섹션 단위, 명령어 인자 및 표시 방식에 대한 설명은 '섹션 명령어'를 참조하십시오.
\section2
\section2 명령어는 새로운 절을 시작합니다.
다양한 섹션 단위, 명령어 인자 및 렌더링에 대한 설명은 ‘섹션 명령어’ 항목을 참조하십시오.
\section3
\section3 명령어는 새로운 절을 시작합니다.
다양한 섹션 단위, 명령어 인자 및 렌더링에 대한 설명은 ‘섹션 명령어’ 항목을 참조하십시오.
\section4
\section4 명령은 새로운 절을 시작합니다.
다양한 섹션 단위, 명령어 인자 및 렌더링에 대한 설명은 ‘섹션 명령어’ 항목을 참조하십시오.
© 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.