[PyKDE] Anybody please show me how to use sip.voidptr?

Phil Thompson phil at riverbankcomputing.co.uk
Fri Mar 5 19:44:00 GMT 2004


On Friday 05 March 2004 18:31, Shunming Fang wrote:
> Hello, guys,
> I need to access the pixel value of an image through QImage, I can get
> voidptr or its int after I call bits(). I think the int of voidptr is
> the physical address of image. Can you please give me a piece of code
> about how to use voidptr address the real data in image or other memory?
> I didn't have any clue about how to use it.

You either need to pass the int() value to something else that can use it, or 
copy it to a Python string using the asstring() method.

Phil




More information about the PyQt mailing list