[PyKDE] PyQt and QByteArray
Ingo Krabbe
i.krabbe at dokom.net
Mon Oct 21 09:51:01 BST 2002
Solved: As PyQt documentation says:
bool loadFromData(const uchar *buf, uint len,
const char *format = 0, ColorMode mode = Auto);
len is derived from buf and not passed as a parameter.
so I can (tested.) simply pass
x=QPixmap()
x.loadFromData( data )
where "data" contains the data has been read from the socket. The len
parameter seems to be passed from pythons internal memory manager for
the data object.
BYE INGO
More information about the PyQt
mailing list