1
我在Qt上工作。我想在qt項目中用qt創建一個連接可可。在這方面,如何導入古柯框架,即ImageIo框架。它存在於這個路徑/system/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIo.framework中。與cooca連接Qt
如果我申請這個stament#import,這個語句通過錯誤ImagIo/Imageo.h:沒有這個文件或目錄。
在此框架中,我訪問CGImageDestnationCreateWithUrl函數。
嗨,添加框架後,CGImageDestnationCreateWithUrl函數不能訪問,這個函數是謊言CGImageDestinatin.h類,這個類是ImageIo.h類的子類。如何在.mm類中訪問CGImageDestnationCreateWithUrl這個函數。 – user1705318
嗨,我主要關心的是,如何在.mm類的Qt項目中使用CGImageDestnationWithUrl()cooca函數。 – user1705318
我想我誤解了你的問題。您是否嘗試在XCode Cocoa項目中使用Qt,或者嘗試在Qt項目中使用Core Foundation函數CGImageDestinationCreateWithURL?如果是Qt項目,則不應該有.mm文件。 – TheDarkKnight