search

Home  >  Q&A  >  body text

What does this symbol //! [0] mean in c++?

I am learning to use qtcreator, but when I saw the example code, I don’t know what the //! [] type does. This is not a comment. The specific code is as follows:


//! [0]
#include <QtWidgets>
#include "mainwindow.h"
//! [0]

//! [1]
//This method contain all widgets of this project
MainWindow::MainWindow()
//! [1] //! [2]

世界只因有你世界只因有你2755 days ago1427

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-16 13:25:18

    This is the qdoc syntax, which is used to generate documentation for the qt project.

    The // words that appear in the C++ code are all comments. If you only focus on the code itself, you don’t need to pay attention to it

    reply
    0
  • Cancelreply