Results 1 to 5 of 5

Thread: What does this mean?

  1. #1
    Join Date
    Aug 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question What does this mean?

    I like learning from examples, and for the most part I can figure things out on my own. But really don't know what to make of " //! [0]" or "//! [1]," etc. I've seen these in several Qt 4.5 samples but I cannot find their meaning. Could someone who knows please tell me? Thanks.

  2. #2
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What does this mean?

    They are comments.

    In most 'C' type languages anything following '//' on a line (to the end of the line) will be ignored by the compiler and hence does not form part of the programme.

    Comments spanning one or more lines can be enclosed in /* .......................*/

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    509
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: What does this mean?

    Hi, Qt uses a special type of comments (and I think //! is one of them) to generate the documentation from the source files.

    See www.doxygen.org for something similar.

    Ginsengelf

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What does this mean?

    I sure these are used to indicate which part of the sources are extracted and placed into the documentation as examples or snippets.

    Like Ginsengelf says, the bulk of the documentation is created from the source files automatically, as it would be almost impossible to keep the documentation upto date otherwise.

  5. #5
    Join Date
    Aug 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What does this mean?

    Thanks everyone. Very supportive.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.