[PyQt] dragdroprobot example, take 2

Lieven Buts lievbuts at vub.ac.be
Thu Jul 12 23:02:22 BST 2007


OK, after taking another look at my Python version of the
"dragdroprobot" example, I found that my code was simply
not keeping any references to the QGraphicsItemAnimation
instances, causing them to be garbage-collected. With
suitable modifications (see
http://ultr23.vub.ac.be/~lieven/pyqt/dragdroprobot-7.py ), the 
animation now works fine. Strangely enough, I now get one
"QObject::startTimer: ..." warning instead of two, as 
in the previous attempts.

Thanks to eveyone who provided hints,

-- 
Lieven Buts


More information about the PyQt mailing list