[PyQt] Dynamic UI loading and signal connecting

Bruno Tikami bruno at tikami.com.br
Mon Apr 28 15:36:40 BST 2008


Thanks for the fast reply Phil, I'm gonna try it.

Tkm

On Mon, Apr 28, 2008 at 11:26 AM, Phil Thompson <phil at riverbankcomputing.com>
wrote:

> On Monday 28 April 2008, Bruno Tikami wrote:
> > Hi all.
> >
> > I need to load Qt4 Designer.ui files on the fly and, once I've got the
> xml
> > parsed, I have to connect all the signals and slots concerning that
> form.
> > I'm planning to transfer the ui xml buffer and the slot objects through
> > pickle / unpickle. The thing is, I cannot assign custom slots using Qt4
> > Designer so I cannot specify which signal should be connected to which
> slot
> > dynamically.
> >
> > Using GTK / Glade I know it's possible through
> >
> > [code]
> >    gladeBuff.signal_autoconnect(self)
> > [/code]
> >
> > Is it possible using PyQt and Qt4 Designer ?
>
>
> http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qmetaobject.html#connectSlotsByName
>
> Phil
>



-- 
[]s!

Tkm
http://djangopeople.net/brunotikami/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080428/59996875/attachment.html


More information about the PyQt mailing list