[PyQt] pyqt5 ImportError: cannot import name 'QGraphicsItemAnimation'

Vincent Vande Vyvre vincent.vande.vyvre at telenet.be
Thu Feb 12 09:45:55 GMT 2015


Le 12/02/2015 07:33, Alan Ezust a écrit :
> [ezust at cerberus] 
> /usr/share/doc/pyqt5-examples/examples/graphicsview/dragdroprobot> 
> python3 dragdroprobot.py
> Traceback (most recent call last):
>   File "dragdroprobot.py", line 49, in <module>
>     from PyQt5.QtWidgets import (QApplication, QGraphicsItem,
> ImportError: cannot import name 'QGraphicsItemAnimation'
>
> Is the class missing from PyQt5?
>
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

This class is defined as obsolete by Qt, therefore, no longer supported 
in PyQt.

http://doc.qt.io/qt-5/qgraphicsitemanimation.html


More information about the PyQt mailing list