Hi all,<br>
<br>
I'm trying to convert a list of scipy arrays to a list of QPixmap objects. Scipy contains a function<br>
"toimage" which converts an array (matrix actually) to a QImage object so my naive implementation was<br>
<br>
<div style="margin-left: 40px;">import scipy<br>
from qt import *<br>
<br>
# imgList is a list of scipy arrays <br>
pixmapList = [ QPixmap(scip.toimage(img)) for img in imgList ]<br>
<br>
</div>
Apparently, this doesn't work, there's no such constructor equivalent to the C++ version. I know of <br>
QPixmap.convertFromImage, but that implies creating an empty QPixmap object first, then reading<br>
the QImage object returned by scipy into it, which pretty much precludes the elegant list comprehension<br>
solution. Any suggestions for a better solution?<br>
<br>-- <br>Alex Borghgraef