Hello There,
I am working on a desktop application in Mac using QT and Mac specific framewroks like Cocoa and Carbon. I just want to get preview image (like on Finder displays) as QImage for the all the local files. To do that , I am using Cocoa specific APIs, it will returns results as NSImage , which I in turn trying to convert CGImageRef , finally to QImage.
To get CGImgeRef from NSImage, I use the NSImage api as,
[NSImageObject TIFFRepresentation], though this call working well in pure Cocoa app (sample), but not in QT application where I imported Cocoa and Carbon , the above said call getting crashed (In QT application) with Stack Trace as attached one.
Could anybody please let me , am I doing anything wrong here? Any work around?
And also let me know more info , if any, required .
Thanks In Advance,
Knrcse
Bookmarks