上下文命令

上下文命令提供 QDoc 自身无法推断的有关文档元素的信息。例如

  • 这个类是线程安全的吗?
  • 该函数是可重入的吗?
  • 该类是哪个模块的成员?
  • 使用该类需要哪个 include 语句?

上下文命令可以出现在 QDoc 注释中的任何地方,但通常放在注释的顶部,就在主题命令的下面。

© 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.