I have read through many questions, most of which not on this site, and they all mention QMovie must be called with a file name, like this
anim = QtGui.QMovie(\"
The QMovie constructor can take a QIODevice as first argument, so the gif data can be loaded via a QBuffer:
QMovie
QIODevice
QBuffer
a = QtCore.QByteArray(data) b = QtCore.QBuffer(a) b.open(QtCore.QIODevice.ReadOnly) m = QtGui.QMovie(b, 'GIF')