[CLOSED] Class Diagrams?
-
Are there any UML class diagrams for the Qt C++ classes or QML types?
Thanks.
Steve
-
This might help : http://stackoverflow.com/questions/9446797/uml-tool-for-qt-applications
I use Doxygen though.
-
Rahul,
I'm looking for existing UML class diagrams for the Qt C++ classes and QML types, not an application to generate them. BTW, does Doxygen generate class diagrams from multiple files?
Thanks.
Steve
-
Hi,
I can suggest that you clone the Qt source, check out the recent version (maybe 5.2) than you can run doxygen on it. I think that this is the easiest way to generate UML diagram.
Regards,
Norbert -
It's not as easy as you may think. As an example, there are 32 different TextField.qml files in the Qt 5.2.0 that I downloaded for Windows 8, ranging in size from 3KB to 21KB. I have not looked at all 32 but they appear to inherit from Control, FocusScope or Item. There are 3 in the 5.2.0/Src directory and 2 in the Tools/QtCreator directory. The QML type documentation says TextField inherits from FocusScope and there are 6 such TextField.qml files, all in various examples subdirectories. So, which TextField.qml file would I use?
Thanks.
Steve
-
Hi,
you should create a doxygen configuration file, and the first think that you should to do, is to set the configuration to recursive. After the running the doxygen, it will detect and parse the inheritance, create UML type information, etc... If you gernerate HTML output, then you should find a html/index.html file. Open it, and you can whatch the internal structure of the Qt source. Please consider the following link for the doxygen user guide:
http://www.stack.nl/~dimitri/doxygen/manual/starting.htmlI don't know anythink about the QML support of doxygen.
Regards,
Norbert -
Reference "post":http://qt-project.org/forums/viewthread/36786/ for additional info.
Steve
-
This class diagram might be useful:
http://qt-project.org/forums/viewthread/36786/
though it's not UML. -
Eugene89,
My last reply referenced the same post.
Thanks.
Steve