PDA

View Full Version : XUL in Qt



dpatel
14th April 2010, 07:31
Hi,

Does anyone know about using XUL in Qt application to create GUI from configuration file.
I want to create GUI from xml based file rather than using QtDesigner. Is there any other way of doing it less painfully :)

Thanks

wysota
14th April 2010, 09:47
Designer generates an xml file to describe the ui as well :)

In general you can either use xslt to transform xul into some other form (like Designer's ui files) or you can implement an xml parser that will read your definition of the ui from the xml file and generate objects from it. Or you can wait until my doctoral dissertation is complete but that's still a year or so...

borisbn
14th April 2010, 11:38
QUILoader (http://qt.nokia.com/doc/4.6/quiloader.html) loads xml-files, produced with QtDesigner, and builds a form

Justin Johansson
14th May 2010, 04:10
The last few weeks I've been also thinking that an implementation of XUL in Qt might be really cool. Today I thought about making a start on designing such an implementation but first due diligence requires that a web search for an existing project that might do this.

Bingo.

http://github.com/pinkboi/libqtxul

It looks like the project is in early stage. A lot of the XUL rendering works and a QtXUL app renders the XUL quite faithfully as the same XUL file does in FireFox. It appears though that input isn't yet connected up with signals and slots. Nevertheless, the libqtxul project looks promising.