PDA

View Full Version : List of Widgets



linuxdev
27th April 2009, 08:04
Hi folks,

I have designed quite a few forms in Qt Designer, each of them having
lot of widgets embedded in them.

Now for the sake of my design document, i need to get a list
of all the widgets (Labels, buttons, Stackwidgets, Frames) in my form.

Is there any tool to do this or does designer give me an option to extract?

Currently all the widgets are available in "ui_form.h", but is there
any better way to get this? ;)

ComaWhite
27th April 2009, 08:14
findChildren() will get you all the widgets

linuxdev
27th April 2009, 09:55
I dont want from a code prespective, i need a feature in Qt Designer...

nivaldonicolau
30th April 2009, 14:24
I dont want from a code prespective, i need a feature in Qt Designer...

Well...

Im using Qt Creator 4.5 and there is a panel on the right side, just over the "Properties" box that lists all the objects on the UI with their respective classes.

Try looking to it.