I think i don't use it properly because with PyQt and the following code :
from PyQt4 import QtGui
fid = open('/tmp/buffer.out','r')
stringBuffer = fid.read()
fid.close()
img1 = QtGui.QImage(640,440, QtGui.QImage.Format_ARGB32)
img1.loadFromData(stringBuffer)
img1.save('test_pyqt4_1.png',format='png')
--> this make an empty png file*
img2 = QtGui.QImage(stringBuffer,640,440, QtGui.QImage.Format_ARGB32)
img2.save('test_pyqt4_2.png',format='png')
--> this make a good png file with my figure
Any idea how to use loadFromData in the good way so that i can reproduce with pyside??