[Development] Start of a refactor of the QSettings class based on QJson

Tomaz Canabrava tcanabrava at kde.org
Thu Oct 2 22:36:15 CEST 2014


On Fri, Sep 26, 2014 at 8:53 AM, Tor Arne Vestbø <tor.arne.vestbo at digia.com>
wrote:

> On 26/09/14 00:31, Thiago Macieira wrote:
>
> >> since I need to take the value, modify it, insert it back nested groups
> are
> >> a pain to use,
> >> because I would have to chain the removal / addtion of the parent group
> >> untill I hit the rootGroup.
>
> This is a general issue with QtJson (and Qt), we don't seem to have an
> easy-to-modify structure for data like this (as far as I can tell).
>
> Wish I could do:
>
>    rootConfig["foo"] = 1;
>    rootConfig["bar"]["baz"] = 5;
>    QJsonObject biz = rootConfig["biz"];
>    biz["buz"] = 6;
>

That would be perfect.



> etc.
>
> tor arne
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20141002/cf2147ab/attachment.html>


More information about the Development mailing list