PDA

View Full Version : QSettings equivalent in QML?



Koying
22nd December 2010, 13:12
Hi,

I'm doing my first steps in QML and I cannot seem to find the equivalent of QSettings in QML. I've checked some examples that save to online/offline storage, but no plain old QSettings.

What is the QML equivalent of a .ini?

wysota
22nd December 2010, 13:18
You could use the Binding element and then save the settings on C++ side.

Koying
22nd December 2010, 13:26
Indeed, but I consider this a fallback solution...
I guess the point of QML is to be able to create a complete app without touching C++, right?

What is actually the recommended way to save settings in QML? A SQL database? Seems overkill to me...

kangear
15th August 2012, 04:25
1.with JavaScript Globle......
2.*.ini