Qt4 Man Pages

Lazy Web warning:

I looked and looked.. I even tried to figure out qdoc3. No joy.

Anyone know how to generate the man pages for Qt4? Or where I can get a tarball with the man pages?

In Fedora Core6 there is an RPM called qt-devel-docs that has the man pages for Qt3, so man pages are possible.


In the qt4.4 snapshots you can simply type 'make qdoc' so thats the easiest way to do this :)

This new feature has not hit the Qt releases yet, so its slightly harder to do for those. But a release should have the docs already, right?

Not sure you need this, but in the spirit of being complete. You can use the following; replace $buildir and $sourcedir with the appropriate dirs. (they may be the same dir in your compilation)

cd $builddir/tools/qdoc3
make >/dev/null
cd $sourcedir
$builddir/tools/qdoc3/qdoc3 $builddir/tools/qdoc3/test/qt.qdocconf


By Thomas Zander at Tue, 11/13/2007 - 09:21

Hi Thomas. Thanks for taking the time to help me with this.

I tried generating using qdoc3 in qt-copy, but all I get are html pages. But I want the roff'd qtfoo.q3t pages!

By awinterz at Tue, 11/13/2007 - 14:14

Sorry, didn't read your post completely, apparantly.
I didn't know there were still people using man for their classes ;)

Currently there is no Qt provided way to create man pages for qt-copy.
I suggest getting doxygen and instructing it to create man pages. I know it creates pretty decent html pages of the qt docs without problems already.

Hope that helps.

By Thomas Zander at Wed, 11/14/2007 - 10:24

Silly me. I didn't even consider using doxygen.

Turns out my script for generating KDE libs man pages works for qt-copy as well.

To use:

% cd trunk/qt-copy/src
% ../../KDE/kdesdk/scripts/ -d /path/to/kde/share

And make sure to prepend /path/to/kde/share/man to your MANPATH environment variable.

By awinterz at Wed, 11/14/2007 - 20:29