July 22, 2010

malloc malloc
Lab Rat
1 posts

QDOC3 for Qt-based application

 

Hy to all, I’ve a question, Qt developer recommend Doxygen to generate documentation instead of qdoc3, why is it?

qdoc3 Readme.txt:

qdoc3 is the tool used to generate the Qt reference documentation.
The source code is included as part of this package primarily to
fulfill our GPL obligations. We highly recommend using
Doxygen (http://www.stack.nl/~dimitri/doxygen/ [stack.nl]) for generating
documentation for your Qt-based application.

Sorry for my English…

Regards
Antonio

[edit: fixed link / chetankjain]

6 replies

July 23, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

Doxygen is more common tool. Also qdoc3 is only for internal use for qt and creator documentation.

July 23, 2010

malloc malloc
Lab Rat
1 posts

Thanks Denis for your answer.
I’d like learning qdoc3 but I’ve problems with project files (.pro and .pri) configurations.
I know and use Doxygen but I’d prefer generate documentation with Qt tool, in this manner it isn’t required to install an other application.

October 12, 2010

Smar Smar
Lab Rat
269 posts

Doxygen is also more generic tool.

There doesn’t seem to be virtually any manual for qdoc3, so I suppose it has some Qt-only quirks that can go causing problems with generic projects. Doxygen has originally written for Qt, and it supports it well.

Despite the default outlook of Doxygen is ugly and not convenient, there is theming options one can use to create proper documentation.

This is my personal opinion, but I’d like to use qdoc3, if it allows using Qt’s doc usability functionality out of box. Those are just so nice parts that every doc should have them.

December 9, 2010

Wolf P. Wolf P.
Ant Farmer
354 posts

Here is the qdoc manual [doc.qt.nokia.com]
I found the link in the wiki WritingQtDocumentation [developer.qt.nokia.com]

December 9, 2010

Smar Smar
Lab Rat
269 posts

The thing about qdoc3 is that it is subject to change.

With Jambi I’ve been forced to mess with qdoc3 and found that features used for Jambi doc generation is not in that documentation. Maybe there is more unknown features? It’s hard to know from version to version how well it will play this time…

If I ever get around to study qdoc3 a bit more, I may even write a guide how to actually is it for your own project, with those features. Simple generation is quite easy though, just build qdocconf file that specifies stuff about your source,
http://doc.qt.nokia.com/qdoc/25-qdoc-configuration-derivedprojects.html describes it quite well.

Most confusing thing about qdoc3 for me has been its usage of environment variables, I prefer to pass stuff using flags or conf files to binaries ( I don’t even have bash, so bash stuff apply to me; I usually use env or scripts)

December 11, 2010

GordonSchumacher GordonSchuma..
Lab Rat
93 posts

Doxygen also can now create qhp files, and was actually written as a qdoc clone which wasn’t tied to Qt. It’s one of the main tools used for documentation in many, many projects.

If you write to qdoc3, you’re basically stuck with the very limited information in the Qt docs (and of course whatever you can glean between here, qt-interest, and #qt), whereas if you are using Doxygen, there is a big manual and a big community using it.

 
  ‹‹ Qt Creator 2.0.0 and self made Qt 4.6.3 libraries      MinGW for Qt 4.7 beta2 HELP ››

You must log in to post a reply. Not a member yet? Register here!