See also related question: How do you debug Qt layout problems
I\'ve got some complex widget hierarchies that I\'m trying to lay out, and I run into the usual p
What you are looking for is basically a tool that analyzes the QObject or rather QWidget hierarchy and adds annotations. This is exactly what GammaRay is about. It is GPL licensed and therefore freely available. You can get further infos on the GammaRay project page. I've used it several times, and it works as expected.