PDA

View Full Version : Qt Creator Source code export from Qt Creator



Gera777
16th May 2013, 15:36
Hello.

I want to create dialog in which several layouts could be loaded. Set layout of layouts are chosen by addLayout method. So the UI is not static.

My idea is to create general dialog and different layout to which parent is passed as a parameter.

But I want to create a UI using Creator. Can I receive a source could for UI created in Qt Creator? Or should I create it manually?

Santosh Reddy
16th May 2013, 16:05
One important thing while using the designer forms is that the forms can only be loaded on to QWidget (not QLayouts), so you will need to have a containter QWidget in each of the layouts, and load the ui into the container QWidgets using the setupUi(QWidget *).

Gera777
17th May 2013, 14:21
Thanks for your comment.

I've used word 'layout' not like type name) And how about source import from UI file or Qt Creator?

Added after 53 minutes:

Oh. I understood how to do it. Thanks again.