I'm writing a plugin for a Qt gui application. I know only the toplevel window QWidget pointer, and I have no particular knowledge of the window's layout(s).
Is there an easy way to add a widget to this window, for exampe occupying the bottom side of the window, like a toolbar?
Perhaps moving all the window content to a new QWidget (a), and create another QWidget (b) with a vbox layout to contain (a) and my new toolbar QWidget. Doesn't sound too easy... perhaps there is a simpler solution?
EDIT: is there a tool like Spy++ which can reveal the Qt widgets layout at runtime?