Skip navigation.
KDE Developer's Journals

Qt4 Man Pages

awinterz's picture

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
zander's picture

doc

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

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

Cheers

awinterz's picture

Re: doc

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!

zander's picture

ahh, the man pages.

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

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.

awinterz's picture

Re: ahh, the man pages.

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/kdedoxyman.sh -d /path/to/kde/share
[...Wait...]


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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.