[PyQt] multiple inheritance + QtCore.pyqtSignal()

Jugdish jugdizh at gmail.com
Mon Jul 12 18:51:47 BST 2010


Is there any way to have a class inherit from multiple classes that emit
signals? I know that PyQt4 doesn't support inheriting from one than one
QObject class, so I've got one of the superclasses declared as a subclass
QObject and the other as a subclass of object. However, I'm not able to
define signals using QtCore.pyqtSignal() on a subclass of object. For
example:

class A(QObject):
    signalA = QtCore.pyqtSignal()

class B(object):
    signalB = QtCore.pyqtSignal()

class C(A, B):
    pass

Is there any way to do this?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100712/35f1240e/attachment.html>


More information about the PyQt mailing list