pyqt  

Re: [PyQt] Dynamic UI loading and signal connecting

Phil Thompson
Mon, 28 Apr 2008 07:27:53 -0700

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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt