views:

55

answers:

1

Hi, Is there any way to view class hierarchy of any QT project graphically? (Project made by using QT-Creator.) I have a big code bundle .. very badly managed code. I need to start working with it. but first I need to study it nicely.

Some tool : Class viewer like one in VC++ (.NET)!?

I want the QT project class hierarchy, look like this one: http://doc.trolltech.com/extras/qt43-class-chart.pdf Or like this one: http://doc.trolltech.com/4.5/hierarchy.html

Keyword can be: class hierarchy explorer

+2  A: 

Doxygen can create both graphical and textual class hierarchies. This is one I once made for a university project.

Edit: Forgot to mention how to generate the graphical hierarchy:

  1. Make sure you have the dot program (from the Graphiz package) installed.
  2. Set GRAPHICAL_HIERARCHY and HAVE_DOT to YES in your Doxyfile.
Job
The code I am having is not event documented. :(
Rahul2047
That's not necessary. You can tell Doxygen to generate output for *all* classes. Even those without documentation.
Job
Hi, I tried it, it does good work. but says: 'This inheritance list is sorted roughly, but not completely, alphabetically:' Any setting which I have missed. btw thanks for saying Doxygen can also generate outputs even when not documented. I want the hierarchy also. (but I don't see that. I am checking whether the code follows the coding conventions.)
Rahul2047
You're welcome! About the warning: I'm not sure what's meant by that. There are some sorting related config option in the `Doxyfile`, though. Take a look here: http://www.doxygen.nl/config.html. Search for options starting with `SORT_`.
Job
Added how to generate the graphical hierarchy to my answer.
Job
Wow it is working exactly as I wanted. Thanks.
Rahul2047