Results 1 to 1 of 1

Thread: NSImage TIFFRepresentation and QT

  1. #1
    Join Date
    Apr 2008
    Posts
    20
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default NSImage TIFFRepresentation and QT

    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
    Attached Images Attached Images

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.