PDA

View Full Version : Dynamic widget creation from an XML-like file



ttvo
26th May 2009, 23:04
Hello,

I'd like to create a default Qt UI from an XML-like file. For example, if the XML file somehow asks for
1) a file browser,
2) a line edit, and
3) 3 push buttons: Run, OK, Cancel
then the following UI will be created and loaded when the above XML file is parsed.

http://www.qtcentre.org/forum/attachment.php?attachmentid=3295&stc=1&d=1243371461


similar to http://www.codeproject.com/KB/install/Create_new_plugin.aspx.


How am I going about to enable that? Thanks.

wysota
27th May 2009, 00:09
Have you seen QUiLoader?

ttvo
1st June 2009, 23:15
No, I haven't. I'll look into the class. Thanks.