On 01.09.11 16:32:36, Alan Ezust wrote: > Using PyQt Version: 4.6-1, I found this strange thing when I try to create a > new QMovie, in response to a signal emit. > > self._movie = QMovie(self) > traceback (most recent call last): > File "/home/rats-user/rats-dev/build/py/ratsApp/ui/IconStuff.py", line > 123, in setActive > self._setActiveMethod(active) > File "/home/rats-user/rats-dev/build/py/ratsApp/ui/IconStuff.py", line > 131, in _setActiveMovie > self._createMovie() > File "/home/rats-user/rats-dev/build/py/ratsApp/ui/IconStuff.py", line > 161, in _createMovie > self._movie = QMovie(self) > RuntimeError: underlying C/C++ object has been deleted > > I'm not sure I understand why I am seeing this at object creation time. > Any clues?
Just a wild guess since QMovie takes a QObject-parent, maybe self is the already-deleted object and not the new QMovie instance... Andreas _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt