Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visualize QT Signals and Slots

I'm currently working with a lot of custom widgets which provide different signals and slots for communicating with each other.

E.g. there is one widget which establishes a network connection and then emits a signal to the others which then change their state from disabled to enabled.

I now want to visualize how these widgets work together and wanted to ask what would be the best way? Is there an UML diagram type which would fit for this purpose?

Perhaps there are already tools which could automatically search for connections and display them?

Would be nice if it would be possible to display not used slots/signals too.

EDIT: Would be nice if there would be an approach which could not just display QWidgets but also classes of QObject which have also Signal/Slots

like image 904
MOnsDaR Avatar asked Nov 28 '10 11:11

MOnsDaR


2 Answers

Maybe this can help http://hackatool.blogspot.co.at/2013/05/simple-tool-to-visualize-connections.html It is a very simple program which uses DOT to visualize the connections but it is quite limited though.

like image 164
user1760653 Avatar answered Oct 14 '22 14:10

user1760653


I know the question is dated but maybe it will help someone.

KDAB created a tool to visualize signals and slots and to do a lot of other debugging on Qt applications. You can get it here: https://www.kdab.com/development-resources/qt-tools/gammaray/

like image 37
jaba Avatar answered Oct 14 '22 12:10

jaba