[PyQt] QMovie start/stop from a different thread
tom
tomschuring at gmail.com
Wed Nov 25 05:35:28 GMT 2009
Hello,
i create a QMovie in the main thread :
self.movie = QMovie("images\whitephone-animation.mng", QByteArray(),
self)
self.movie.setCacheMode(QMovie.CacheAll)
self.movie.setSpeed(100)
self.movie_canvas.setMovie(self.movie)
but then want to start/stop it from a different thread but receive a :
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Menu(0x1183680), parent's thread is QThread(0x117dd58), current
threa
d is QThread(0x3de3e88)
error.
can i call the start / stop slots from within that different thread, and how
would i do that ?
thanks,
tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091125/f5ed8853/attachment.html
More information about the PyQt
mailing list