Yes, but I'm not sure what it will decide when you call a function from an object that lives in another thread. It might work, but I'm not sure, therefore I used this kind of "proxy".
Looks correct.Your Emiter class is "translated" to Python like this ?
Qt Code:
def __init__(self): def emitSignal(self, val): self.emit(QtCore.SIGNAL("updateProgress"), x)To copy to clipboard, switch view to plain text mode
Yes, just to forward the signal. As I mentioned, you could do it without it, but then you'd have to have access to the progress bar from within the thread object. That's your choice.And what is the purpose (and implementation as it is not shown how it does it's work) of MyThread:: propagate ? Just to forward the signal ?
Bookmarks