Provide QObject slots and signals features to another class?
I am currently expanding a class to change it's connections to use QNetwork.
So my code starts like this:
finished = QtCore.Signal(str)
error = QtCore.Signal(str)
self.nam = QtNetwork.QNetworkAccessManager()
I got an error: AttributeError: 'PySide.QtCore.Signal' object has no attribute 'emit'
My signal is defined OUTSIDE of init so I don't understand why I have that error?
Do I have to add anything else to obtain the Slots/Signal benefits?
Woops, I found the reason by myself...
@class myClass(anotherLib.originalClass, QtCore.QObject):
Adding the QObject parent class and calling it during the init