PDA

View Full Version : Generate a form from an XML file.



cbarmpar
29th September 2008, 12:22
Hi all,

I would like to generate a form(i.e. dialogue) based on an XML file. The xml file will include the name of the widget the type and the position. Is that possible?

How can I assign these attributes. Do i have to use a loop?
An small example to demonstrate the principles will be great.

Many thanks in advance.

munna
29th September 2008, 16:54
A UI file that is generated when we design a form using Qt designer is basically an XML file which is used by the Qt application called uic to generate C++ code which is then compiled to get the executable.

Maybe you can also design and code along the same lines.