[Interest] Get QIcon from NSImage
john at wavemetrics.com
Wed Mar 21 19:53:46 CET 2012
I forgot to send this to the list...
On 21-Mar-2012, at 10:11 AM, Jason Dictos wrote:
> Is there a way to get a QIcon from an NSImage?
You can get a QPixmap from a CGImage: QPixmap::fromMacCGImageRef.
You can make the icon from the QPixmap using the QIcon constructor that does that.
You will have to do the research on NSImage -> CGImage. Unless Apple is really annoying (and they often are :), there should be an easy way to go from NSImage to CGImage.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest