[PyQt] dynamic signal creation

Phil Thompson phil at riverbankcomputing.com
Fri Feb 17 08:41:02 GMT 2012


On Thu, 16 Feb 2012 18:54:20 -0800, Emmanuel Mayssat <emayssat at gmail.com>
wrote:
> Is it possible to create signals dynamically?
> That is
> 
> class LObject(QObject):
> def __init__(self, parent):
>     self.dataChanged = pyqtSignal()
>     self.dataChanged.emit()

No - it's a Qt limitation.

Phil


More information about the PyQt mailing list