1

I see this comments //! [0] very often in Qt examples. What they mean?

Example (from a default MDI example):

//! [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]
Queue Overflow
  • 364
  • 1
  • 2
  • 12
  • 1
    this is [doxygen](http://www.stack.nl/~dimitri/doxygen/) markings. It allows this tool to catch fragments of code which should be used in documentation as example. This way you have warranty that examples in documentation are compiling and working properly and are up to date. This fragment of [code you can see here in documentation](http://qt-project.org/doc/qt-4.8/qapplication.html#closeAllWindows). – Marek R Oct 13 '14 at 21:37
  • @MarekR: what?? Qt uses qdoc, not doxygen! – László Papp Oct 13 '14 at 21:45
  • 1
    Thanks guys. This symbols can't be googled. – Queue Overflow Oct 13 '14 at 21:53

0 Answers0