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. Qt Syntax Questions

Qt Syntax Questions

Scheduled Pinned Locked Moved General and Desktop
12 Posts 7 Posters 4.4k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Arukas
    wrote on last edited by
    #1

    I'm going through an older Qt project, and I'm recognizing the syntax. I'm seeing three backslashes "///" and on that line there's an @ something. Like @file or @author, followed by a file name or a person name respectively. Its not hard to read, but I don't recognize that as C++ syntax. They look like Java comments, but I'm only familiar with Java.

    Can someone explain what the deal is here? Is this a special Qt function?

    -Arukas

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      This might be "Doxygen":http://www.stack.nl/~dimitri/doxygen/commands.html syntax.
      If so these lines are comment lines and may be parsed by Doxygen for generating doucmentation. See the provided link for more details.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Arukas
        wrote on last edited by
        #3

        Does Qt support Doxygen then?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          amleto
          wrote on last edited by
          #4

          qt and doxygen are orthogonal

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            If I remember correctly Qt used also Doxygen for documentation in the past. However, it is typically not relevant. A documentation of Qt classes are readily available.

            Doxygen is basically a special way to format for source code comment, so that they may retrieve certain information and assemble documentation.

            Note: If you have an application's source code which is using the Doxygen notation in its comments, it has no influence on the application itself.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              [quote author="koahnig" date="1330976719"]If I remember correctly Qt used also Doxygen for documentation in the past.[/quote]
              Qt did not use doxygen in the past. Here is the "history":http://rant.gulbrandsen.priv.no/udoc/history :-)

              1 Reply Last reply
              0
              • F Offline
                F Offline
                foxyz
                wrote on last edited by
                #7

                Your means the code like:
                static char CCId[] = "@(#) @$Id: CompareDock.cc,v 1.19 2010/12/03 19:54:51 Giant Exp $";

                I just know coding and coding

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #8

                  [quote author="Andre" date="1330978716"]
                  Qt did not use doxygen in the past. Here is the "history":http://rant.gulbrandsen.priv.no/udoc/history :-)[/quote]

                  Thanks for correcting my memory ;-) Interesting link with compact information.

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #9

                    [quote author="foxyz" date="1331023084"]Your means the code like:
                    static char CCId[] = "@(#) @$Id: CompareDock.cc,v 1.19 2010/12/03 19:54:51 Giant Exp $";[/quote]

                    Hi,

                    this is not doxygen. This is a special technique to put version information into a binary in a platform independant way. YOu can open the binary and search for tags like "@(#)".

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      Arukas
                      wrote on last edited by
                      #10

                      Here is an example:

                      @/// @author <someone elses name@

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #11

                        It's qdoc markup to generate the docs. It's more or less compatible with Doxygen.

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          Arukas
                          wrote on last edited by
                          #12

                          Okay.

                          Thanks!
                          -Arukas

                          1 Reply Last reply
                          0

                          • Login

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