[PyKDE] QPixmap and loading pixmaps from plain data

Peter Osborne pete at bookware3000.ca
Fri Apr 2 23:27:00 BST 2004


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)




More information about the PyQt mailing list