[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] PyQt and QByteArray
From:       Ingo Krabbe <i.krabbe () dokom ! net>
Date:       2002-10-21 7:51:22
[Download RAW message or body]

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic