Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is //! [X] good for??

What is //! [X] good for??

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 535 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • QT-static-prgmQ Offline
    QT-static-prgmQ Offline
    QT-static-prgm
    wrote on last edited by
    #1

    Hello,

    i'm currently reading some Qt examples to get my own program working and i often find things like this:
    //! [3]
    //! [0]

    So my Question, what is it good for??

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Q139
      wrote on last edited by
      #2

      To remind something , maybe copies of repeating code?

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        No, It's a QDoc annotation for automatic documentation generation. For each example there's a corresponding .qdoc file with text including these annotated pieces of code. See\snippet command docs for details.

        1 Reply Last reply
        5

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved