Qt代码中的奇怪评论

时间:2014-10-13 21:33:14

标签: c++ qt

我在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]

0 个答案:

没有答案