Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    What is //! [1] comment in the examples?

    The Lounge
    2
    3
    546
    Loading More Posts
    • 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.
    • H
      harveyab last edited by harveyab

      I just started learning Qt. In the examples, the code has comments like //! [1] etc. What are they for?

      1 Reply Last reply Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by

        These are QDoc comments used for providing code snippets used in generation of examples documentation.
        If you're just learning you can ignore them safely.

        H 1 Reply Last reply Reply Quote 1
        • H
          harveyab @Chris Kawa last edited by

          @Chris-Kawa Thanks. That's about what I figured.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post