What does this symbol //! [0] mean in c++?
世界只因有你
世界只因有你 2017-05-16 13:23:18
0
1
1424

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]

世界只因有你
世界只因有你

reply all(1)
小葫芦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template