• 7078阅读
  • 0回复

MAC下去除QFileDialog等QT默认写torlltech注册表信息 [复制链接]

上一主题 下一主题
离线voidbroken
 

只看楼主 倒序阅读 楼主  发表于: 2011-02-16
http://www.qtcentre.org/threads/35292-Qt-Apps-banned-from-Mac-App-Store/page2

全文请看链接

So we submitted a Qt based app to the App Store and had it rejected for the following reasons:

- Improperly named files in ~/Library/Application Support/*
- File created at ~/Library/Preferences/com.trolltech.plist

The first was a result of using QDesktopServices::storageLocation() for QDesktopServices::dataLocation or QDesktopServices::cacheLocation

They need you to create the directory not like
~/Library/Application Support/Company Name/Product Name

but as

~/Library/Application Support/bundleId (com.company.App)
The following patch will change Qt to use the QCoreApplication:organizationDomain() and QCoreApplication::applicationName() fields to build the path to store for data and cache. This is ONLY valid if you bundle Id exactly matches the above values
qt-mac-app-store-cache-location.txt


The following patch will add an exported function called void qt_force_trolltech_settings_to_app_area(bool bVal) which you must call FIRST thing in your main function. To access declare an extern to it for proper linking. This will put all items found formally in com.trolltech.plist as a group "Trolltech" inside the default plist file for your app (See above patch about domain and name for proper bundle id usage).
qt-mac-settings-in-app-area.txt


附件: qt-mac.rar (2 K) 下载次数:3
快速回复
限100 字节
 
上一个 下一个