[PyQt] Re: Help with threads and signalling

melkor at orangepalantir.org melkor at orangepalantir.org
Thu Jul 16 12:26:39 BST 2009


My first guess was more of a hack, a better way to do what you want is to
connect a signal to the QTimer stop instead of calling its stop method.

ie in your run method:

        self.connect(self,SIGNAL("foo()"),self.timer,SLOT("stop()"))

and then in your shutdown method emit the signal:

        self.emit(SIGNAL("foo()"))

Instead of using self.timer.stop()

I read some of the documentation to figure this out.



More information about the PyQt mailing list