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]
高洛峰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