I put together a little Qt4 utility that conveniently allows inspection of a QObject's properties, signals, and slots during program execution. It even keeps a tally on how many times the various signals have been triggered. I guess its the idea of QtObjectInspector, but very lightweight...
Perhaps it's been done before, but I think it could be very nice for debugging.... and quite easy to use.
Usage: include the attached files in your project. Then just go:
Qt Code:
QObjectBrowser *browser=new QObjectBrowser(pointer_to_my_widget); browser.showNormal();To copy to clipboard, switch view to plain text mode
Anyone's welcome to fancy it up... but don't everybody start modifying the code at once! Tell me if you plan to add a feature or improve the look.
Enjoy!
JM
Bookmarks