使用 macro variable to create your own simple QDoc commands.
Macros are useful for:
For a set of predefined global macros that you can use in all documentation projects and their current values, see /qtbase/doc/global/macros.qdocconf and /qtbase/doc/global/htmltabs.qdocconf . They have macros that include:
Qt Online Installer copies the macros files to your Qt installation folder, so you can use the macros even if you build the documentation using QDoc from an installed Qt (as opposed to building QDoc yourself from sources).
注意: The values of the global macros might change between Qt versions, so the macros might be extended differently depending on the Qt version that you use to build the documentation.
You can add macros for a particular documentation project in the .qdocconf file of the project or any .qdocconf file that you include into it. If the macro could be useful in more than one documentation project, add it to the global macros file.
For more information about the macro syntax and options, see macro .
You can use macros in the same way as the built-in QDoc commands in:
例如:
\QOI copies the macros files to your Qt installation folder.
The global macros file contains the following obsolete macros for compatibility with older documentation sets.
Don't Use | 使用 |
---|---|
\gui | \uicontrol |
\menu | \uicontrol |
\param | \a |
\return | 写入 返回 or 返回 . |
另请参阅 macro and Unknown macro .
杂项 CMake Text Snippets