微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

c – 自动为QT应用程序创建类图的工具

我在查找为qtcreator应用程序创建类图的工具时遇到问题
我尝试了BOUML和Umbrello,但是它们都有一些类的问题.

我正在研究Ubuntu.

解决方法

doxygen可以构建很多图表(继承,协作,甚至是callflow),我想你应该尝试一下.

我过去曾经使用它,即使没有按要求对代码进行评论,它也能够生成非常好的(尽管很复杂的)图表.

引用Features在线文档部分:

  • Uses the dot tool of the Graphviz tool kit to generate include dependency graphs,collaboration diagrams,call graphs,directory structure graphs,and graphical class hierarchy graphs.

  • Automatically detects public,protected and private sections,as well as the Qt specific signal and slots sections. Extraction of private class members is optional.

Although doxygen can Now be used in any project written in a language that is supported by doxygen,initially it was specifically designed to be used for projects that make use of Qt Software’s Qt toolkit. I have tried to make doxygen `Qt-compatible’. That is: Doxygen can read the documentation contained in the Qt source code and create a class browser that looks quite similar to the one that is generated by Qt Software. Doxygen understands the C++ extensions used by Qt such as signals and slots and many of the markup commands used in the Qt sources.

原文地址:https://www.jb51.cc/c/239686.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐