[Development] QSettings, OS X

Liang Qi cavendish.qi at gmail.com
Wed Dec 18 13:51:28 CET 2013


On 18 December 2013 13:41, Samuel Gaist <samuel.gaist at edeltech.ch> wrote:

> Hi,
>
> I recently came across several posts talking about QSettings not working
> as expected on OS X (things not yet reported on the bug tracker).
>
> On OS X 10.9, it seems that Apple has decided to cache the application
> preferences more aggressively so if one users erases the plist file and
> restarts its application, the preferences are restored because of the
> cached version. The only current solution is to kill cfprefsd. So I
> wondered if some sort of cleanup/"don't load" should be added when reading
> the first time if the plist file doesn't exist ?
>
> While looking at QSettings code, I have found that it uses several
> platform specific helper classes. Wouldn't they better fit in qpa ? if so,
> I'll be happy to move them and in this case should I open a report for that
> ? Also which branch should I target: dev or stable ?
>
> I also saw that the current implementation doesn't use the mac specialized
> version for parsing configuration files when NativeFormat is used. Would
> adding support for that in QMacSettingsPrivate be a good idea ?
>
> And lastly would a NSUsersDefaults powered helper class be interesting ?
> (Just thinking about it, I didn't implement anything yet)


There is bug report for that,
https://bugreports.qt-project.org/browse/QTBUG-34899

QPA is most for GUI and things depend on GUI. The QPA of Qt Core has not
started yet. If anyone wants to contribute about this topic, go to dev,
obviously.

Regards,
Liang

-- 
http://www.qiliang.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131218/1b330c9b/attachment.html>


More information about the Development mailing list