This example shows how to convert an image between a QPixmap and a CGImageRef using functions from the QtMac 名稱空間。
要運行範例從 Qt Creator ,打開 歡迎 模式,然後選擇範例從 範例 。更多信息,拜訪 構建和運行範例 .
文件:
另請參閱 Qt for macOS and Qt Mac Extras .