[PyQt] QPixmap and fromMacCGImageRef

Phil Thompson phil at riverbankcomputing.com
Fri Feb 27 08:52:55 GMT 2009

On Thu, 26 Feb 2009 21:20:29 -0600, Donald Atkins <datkins23 at gmail.com>
> I noticed that the fromMacCGImageRef method (mac only)  for QPixmap is  
> not available in PyQt. It looks like fromWinHBITMAP is looking through  
> the .sip files. Is this method easy to add? I'm combining some pyobc  
> calls to qucktime and was trying to use fromMacCGImageRef to pass pyqt  
> an movie frame.

The problem is how to wrap the CGImageRef type as it is opaque and passed
by value.

You might be lucky and adding the following to qpixmap.sip might work...

class CGImageRef;
static QPixmap fromMacCGImageRef(CGImageRef image);


More information about the PyQt mailing list