Because QPixmap does not have a constructor that accepts a const uchar* (python string) http://doc.trolltech.com/3.3/qpixmap.html On April 2, 2004 04:17 pm, Maciej Paszta wrote: > Why this works: > icon = QPixmap() > icon.loadFromData(plain_data) > when this doesn't: > icon = QPixmap(plain_data)