Re: [Development] QML Settings

2015-05-27 Thread Federico Buti
That was it! While I've used QSettings many times I didn't thought of inserting the identifiers for the QML Settings. Documentation is not strict about that, probably because it's obvious that identifiers are needed. I knew it was some stupid mistake of mine! :-/ Well, thanks a lot! F. On 13 Ma

Re: [Development] QML Settings

2015-05-13 Thread Konstantin Ritt
To make the settings persistent, you have to set http://doc.qt.io/qt-5/qml-qt-labs-settings-settings.html#application-identifiers (note however that settings Qt.application.name & Co won't probably help in this case (bug?)). Konstantin 2015-05-13 22:18 GMT+04:00 Federico Buti : > Hi, > > I've i

Re: [Development] QML Settings

2015-05-13 Thread Federico Buti
Hi, I've inverted the approach, i.e. I've defined the alias in the root component and the two property in the Setting type. Result: it still does not work. Is there anything specific that should be done? Thanks to everyone. F. Hi Dominik. No, the documentation is pretty clear about that: alias

Re: [Development] QML Settings

2015-05-12 Thread Federico Buti
Hi Dominik. No, the documentation is pretty clear about that: alias inside the Settings. That's why I've linked it. As for the error, that's because the documentation example aliases "x"...but Settings has its own "x", obviously! I just got it few minutes after I have sent the mail. Trivial error.

Re: [Development] QML Settings

2015-05-12 Thread Dominik Holland
Hi Federico, On 05/12/2015 12:14 PM, Federico Buti wrote: > Hi list(s) > > I was considering the usage of Settings QML > for an app > I'm working on. I just need to store two-three strings across mobile > platforms and the API seems to fit

[Development] QML Settings

2015-05-12 Thread Federico Buti
Hi list(s) I was considering the usage of Settings QML for an app I'm working on. I just need to store two-three strings across mobile platforms and the API seems to fit my use case. However, I'm not able to make it work properly and I'm w