Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, January 2008
dump widgets on qdialog to xml


Message 1 in thread

I am going to modify my request from a couple of weeks ago...

I am searching to find a way to output an xml representation of all of the widgets on the current QDialog screen.  I originally was going to use QApplication::allWidgets but there are QDialog pop up windows that come up that are not tied to QApplication therefore this function will not work.

Does anyone have a better idea or solution to doing this?

Thanks!
Alecia

--
 [ signature omitted ] 

Message 2 in thread

Alecia wrote: 

> -----Original Message-----
> From: Hoobing, Alecia Dawn [mailto:alecia@xxxxxx] 
> Sent: Tuesday, 8 January 2008 19:10
> To: qt-interest@xxxxxxxxxxxxx
> Subject: dump widgets on qdialog to xml
> 
> 
> I am going to modify my request from a couple of weeks ago...
> 
> I am searching to find a way to output an xml representation 
> of all of the widgets on the current QDialog screen.  I 
> originally was going to use QApplication::allWidgets but 
> there are QDialog pop up windows that come up that are not 
> tied to QApplication therefore this function will not work.
> 
> Does anyone have a better idea or solution to doing this?
> 
> Thanks!
> Alecia

I haven't used this, but have a look at QAbstractFormBuilder.Save( QIODevice
* device, QWidget * widget ); 

Note that you only need to do this if you want the run-rime properties. The
.ui files are themselves standard XML. IIRC, there is an XML schema on the
TrollTech website for them. This allows you to validate any (bulk)
transformations that you may want to make before reloading them. 

I am actually doing the reverse - writing something to convert Delphi forms
into .ui! 

Hope that helps, 

Tony Rietwyk

--
 [ signature omitted ]