Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtgui-qdocconf.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5
6\page qtgui-qdocconf.html
7\title qtgui.qdocconf with Comments
8
9\brief A walkthrough of a typical qdocconf file.
10
11This document goes through a typical Qt 5 qdocconf file. The contents is taken from
12Qt GUI's \e qtgui.qdocconf file.
13
14Below you will find the full contents of \c qtgui.qdocconf. The subsequent section will discuss
15every statement in the qdocconf file.
16
17\badcode
18 include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
19
20 project = QtGui
21 description = Qt GUI Reference Documentation
22 url = http://doc.qt.io/qt
23 version = $QT_VERSION
24
25 examplesinstallpath = gui
26
27 qhp.projects = QtGui
28
29 qhp.QtGui.file = qtgui.qhp
30 qhp.QtGui.namespace = org.qt-project.qtgui.$QT_VERSION_TAG
31 qhp.QtGui.virtualFolder = qtgui
32 qhp.QtGui.indexTitle = Qt GUI
33 qhp.QtGui.indexRoot =
34
35 qhp.QtGui.subprojects = classes
36 qhp.QtGui.subprojects.classes.title = C++ Classes
37 qhp.QtGui.subprojects.classes.indexTitle = Qt GUI C++ Classes
38 qhp.QtGui.subprojects.classes.selectors = class headerfile
39 qhp.QtGui.subprojects.classes.sortPages = true
40
41 tagfile = qtgui.tags
42
43 depends += \
44 qtcore \
45 qtnetwork \
46 qtopengl \
47 qtsvg \
48 qtqml \
49 qtquick \
50 qtwidgets \
51 qtdoc
52
53 headerdirs += ..
54
55 sourcedirs += .. \
56 ../../../examples/gui/doc/src
57
58 excludedirs = ../../../examples/gui/doc/src/tmp
59
60 exampledirs += ../../../examples/gui \
61 snippets
62
63 imagedirs += images \
64 ../../../examples/gui/doc/images \
65 ../../../doc/src/images
66\endcode
67
68\title Qtgui.qdocconf with notes
69
70\badcode
71 include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
72\endcode
73
74QDoc inherits the default templates, macros, and settings from the directory
75specified from the \c $QT_INSTALL_DOCS variable. \c qmake prints the value of
76the variable.
77\badcode
78 qmake -query
79\endcode
80
81\b {See also}: \l {include}.
82
83\badcode
84 project = QtGui
85\endcode
86
87The \c project variable sets the name of the QDoc build. This name is also
88used to form the index file, which, in this case, will be \e qtgui.index. The
89name of the index file doesn't adopt the uppercase letters of the project name.
90
91\b {See also}: \l {project}.
92
93\badcode
94 description = Qt GUI Reference Documentation
95\endcode
96
97A short description of the project concerned.
98
99\badcode
100 url = http://doc.qt.io/qt-5
101\endcode
102
103The \c url variable holds the base url of the project.
104
105The URL is stored in the generated index file for the project.
106QDoc will use this as the base URL when constructing external links
107to content listed in the index.
108
109\note QDoc omits this value when the -installdir argument
110is specified when running QDoc.
111
112\badcode
113 examplesinstallpath = gui
114\endcode
115
116The \c examplesinstallpath variable indicates that the examples will be
117installed in the \e gui directory under the parent examples directory
118(for Qt, this is $QT_INSTALL_EXAMPLES).
119
120\note The examplepath variable has to match the example directory specified in
121 \c exampledirs.
122
123\note It is possible to override \c examplesinstallpath for a specific
124 \l {example-command}{\\example} using the \l {meta-command}{\\meta}
125 command.
126
127\b {See also}: \l {examplesinstallpath}, \l {exampledirs}, and
128\l {meta-command}{\\meta}.
129
130\badcode
131 qhp.projects = QtGui
132 qhp.QtGui.file = qtgui.qhp
133\endcode
134
135The following parameters are for creating a QHP file (\e .qhp). The
136\e qhelpgenerator program can convert the QHP file into a QCH file (\e .qch),
137which can be opened in Qt Assistant or Qt Creator.
138
139\badcode
140 qhp.QtGui.namespace = org.qt-project.qtgui.$QT_VERSION_TAG
141\endcode
142
143A unique identifier which enables QHelpEngine to retrieve the helpfile
144from a given link. This namespace is also used as a base url for links
145to the helpfile.
146
147\badcode
148 qhp.QtGui.virtualFolder = qtgui
149\endcode
150
151Virtual folders group documentation together into a single location. A
152virtual folder will become the root directory of all files referenced in
153a compressed help file.
154
155When two manuals are located in the same virtual folder, it is possible to
156refer to sections of the other manual using relative paths. The virtual
157folder tag is mandatory and the folder must not contain any '/'.
158
159\badcode
160 qhp.QtGui.indexTitle = Qt GUI
161\endcode
162
163This is the title of the page that has the contents.
164
165\badcode
166 qhp.QtGui.indexRoot =
167\endcode
168
169Specifies the title of the root (namespace) page to generate the documentation for.
170Typically defined as an empty string.
171
172\badcode
173 qhp.QtGui.subprojects = classes
174 qhp.QtGui.subprojects.classes.title = C++ Classes
175 qhp.QtGui.subprojects.classes.indexTitle = Qt GUI C++ Classes
176\endcode
177The subprojects specify the sections that are displayed in the table of contents
178for this project. In this example, the subproject, which is displayed in
179the Assistant's sidebar, is named "C++ Classes" and its index is the page
180titled "QT GUI C++ Classes".
181
182\badcode
183 qhp.QtGui.subprojects.classes.selectors = class fake:headerfile
184\endcode
185
186Lists all C++ classes and header files.
187
188See \l {Creating Help Project Files} for more information.
189
190\badcode
191 tagfile = ../../../doc/qtgui/qtgui.tags
192\endcode
193
194This specifies the Doxygen tag file that needs to be written when the html is generated
195by QDoc.
196
197\badcode
198depends += \
199 qtcore \
200 qtnetwork \
201 qtopengl \
202 qtsvg \
203 qtqml \
204 qtquick \
205 qtwidgets \
206 qtdoc
207\endcode
208
209Specifies the modules QDoc needs to load for generating output for Qt GUI.
210QDoc loads the index files for all modules listed in the depends statement in
211order to enable linking to pages in these modules.
212
213\badcode
214 headerdirs += ..
215\endcode
216
217Add the parent directory to the list of directories containing the header files
218associated with the \e .cpp source files.
219
220\badcode
221 sourcedirs += .. \
222 ../../../examples/gui/doc/src
223\endcode
224
225Add the specified directories to the list of directories containing the \e .cpp and
226\e .qdoc files used in the documentation.
227
228\badcode
229 excludedirs = ../../../examples/gui/doc/src/tmp
230\endcode
231
232The \c excludedirs variable is for listing directories that should not be processed
233by QDoc, even if the same directories are included by the \c sourcedirs or \c headerdirs
234variables.
235
236When executed, QDoc will ignore the directories listed.
237\b {See also}: \l {excludefiles}.
238
239\badcode
240 exampledirs += ../../../examples/gui \
241 snippets
242\endcode
243\b {See also}: \l {examples-variable}{examples}, \l {examplesinstallpath}.
244
245Add the two directories specified to the list of directories containing the source
246code of the example files.
247
248If QDoc encounters both \c exampledirs and \c examples, it will look first in the
249\c examples directory. QDoc will accept the first matching file it finds. QDoc will
250search in the directories specified, not in their subdirectories.
251
252\badcode
253 imagedirs += images \
254 ../../../examples/gui/doc/images \
255 ../../../doc/src/images \
256\endcode
257
258Add the directories specified above to the list of directories where the images
259can be found.
260*/