[Interest] Get QIcon from NSImage
John Weeks
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.
-John Weeks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120321/e8f47964/attachment.html>
More information about the Interest
mailing list