//! [0] in Qt source code

后端 未结 1 2014
猫巷女王i
猫巷女王i 2020-11-30 12:37

What is the meaning of the //! [n] (n = 0, 1, 2 ...) markup in the C++/QML sources in the Qt sample projects?

For example:



        
相关标签:
1条回答
  • 2020-11-30 13:03

    Despite the common misconception, this is qdoc syntax, not doxygen. This comment is for documentation purposes in the Qt Project to mark example snippets to be rendered so. See the documentation and the corresponding code that implements this feature.

    As an end user of Qt, you do not need to deal with it too much unless you start contributing to the Qt Project itself or you are trying to reuse qdoc for your own project, which would be admittedly odd at this point.

    0 讨论(0)
提交回复
热议问题