1

In many QML Examples you can find the line:

// ![0]

See:

It clearly is a comment.

But since the text of the comment does not seem to carry any meaning but appears frequently, I was wondering if there is any deeper meaning to it, like a shebang line is a comment, too, but carries meaningful information for the interpreter.

Is this some kind of annotation for the QML translator or maybe just some comment the author thought, it will carry a clear message to the reader?

  • 1
    Just a guess: maybe it is related to [QDoc](http://doc-snapshots.qt.io/qt5-dev/qdoc-guide-writing.html) ? – IIIIIIIIIIIIIIIIIIIIII May 23 '18 at 12:16
  • Ok, to summarize the answers from the [question it duplicates](https://stackoverflow.com/questions/40347224/strange-comment-syntax-in-quick-controls-2-0-qml-source) and the [question it really duplicates](https://stackoverflow.com/questions/17508413/0-in-qt-source-code): `\\!` starts a comment for QDoc. `\\ ![n]` specifically has been for a feature of QDoc to automatically render the enclosed excerpts of the code in the documentation. This feature might be obsolete. (jpnumri: "[...] *used* to be example code [...]", link to code implementing the feature is dead.) – derM - not here for BOT dreams May 23 '18 at 15:01

0 Answers0