我在Qt示例中经常看到此评论//! [0]
。他们的意思是什么?
示例(来自默认的MDI示例):
//! [0]
exitAct = new QAction(tr("E&xit"), this);
exitAct->setShortcuts(QKeySequence::Quit);
exitAct->setStatusTip(tr("Exit the application"));
connect(exitAct, SIGNAL(triggered()), qApp, SLOT(closeAllWindows()));
//! [0]