Results 1 to 7 of 7

Thread: Doxygen and Qt... is there a FAQ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Doxygen and Qt... is there a FAQ?

    Quote Originally Posted by Coises View Post
    I presume the right way to generate Qt-like documentation is to use Doxygen? At least, the documentation comments in Qt source files sure look like Doxygen documentation, and Doxygen can generate *.qch files if you tell it where to find qhelpgenerator.exe.
    There is no single "right way". Doxygen was created to mimic Trolltech's internal documenting tool and it's the suggested tool to be used for generating documentation. But certainly not the only one.

    Assuming Doxygen is the way to go, are there style sheet and layout files to be found that generate documentation which roughly matches the look of the built-in Qt documentation?
    None that I know of. I have a XSL template which makes it possible to convert xml output from doxygen to something that looks similar to official Qt docs but as I don't use doxygen anymore, the stylesheet is not maintained.

    It would appear that I should be able to link transparently to the built-in Qt documentation, but I can’t figure out what I have to do to make that work.
    I'm not sure if linking to the official docs is possible using doxygen as doxygen uses a different name mangling scheme than the official docs. In theory you would do it using a tag file created i.e. using ctags.

    Assuming I get all that working... is there a straightforward way to add a Doxygen step to the build process, so that generating updated documentation becomes automatic whenever I rebuild?
    Yes, that's more or less doable. Either use QMAKE_EXTRA_TARGETS or QMAKE_POSTTARGET_DEPS or something like that.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Doxygen and Qt... is there a FAQ?

    Quote Originally Posted by wysota View Post
    None that I know of. I have a XSL template which makes it possible to convert xml output from doxygen to something that looks similar to official Qt docs but as I don't use doxygen anymore, the stylesheet is not maintained.
    Sounds good! I always wanted to do one, but never did. Can you share your template? That would be great!

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Doxygen and Qt... is there a FAQ?

    Quote Originally Posted by Lykurg View Post
    Sounds good! I always wanted to do one, but never did. Can you share your template? That would be great!
    I'll have to look for it. But it's far from being perfect, I stopped using it long ago.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jun 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Doxygen and Qt... is there a FAQ?

    Hi,

    many Thanks for your Qt-style layout! It's great!

    I use it to embed my own doxygen docu directly into the QtCreator by adding these lines to the doxygen config:


    #---------------------------------------------------------------------------
    # configuration options for QtHelp output
    #---------------------------------------------------------------------------
    GENERATE_QHP = YES
    QHP_NAMESPACE = doc.mycompany.com
    QHP_VIRTUAL_FOLDER = doc
    QHG_LOCATION = qhelpgenerator


    You need Doxygen 1.70 or higher and the Qt Toolkit 4.6 or higher to create the QtHelp-Files (.qch).

    This config creates a directory /qhc/ with a file named <PROJECTNAME>-<PROJECTVERSION>.qhc

    To enable it in QtCreator open it, goto "Extras -> Settings -> Help -> Documentation" and add the file.

    Then restart QtCreator and you can use your own docu by pressing F1

    ciao,
    Chris

Similar Threads

  1. [Doxygen] EXTRACT_ALL and warnings
    By Boron in forum General Programming
    Replies: 0
    Last Post: 18th April 2009, 13:55
  2. DoxyGate - Doxygen GUI Frontend
    By doxygate in forum Qt-based Software
    Replies: 11
    Last Post: 12th January 2009, 16:48
  3. How to configure Doxygen in Fedora core 4
    By Manohar in forum General Programming
    Replies: 2
    Last Post: 22nd March 2008, 05:17
  4. Doxygen and Qt Classes
    By chaosgeorge in forum Qt Programming
    Replies: 6
    Last Post: 10th December 2006, 00:38
  5. doxygen config like qt docs
    By danadam in forum General Discussion
    Replies: 1
    Last Post: 3rd September 2006, 18:10

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
  •  
Qt is a trademark of The Qt Company.