[Development] Settings API for QML

Shawn Rutledge shawn.rutledge at digia.com
Tue Dec 11 17:03:21 CET 2012

On Tue, Dec 11, 2012 at 03:37:23PM +0000, Bache-Wiig Jens wrote:
> I would also consider an even simpler API. How about we introduce a new keyword for persistent properties and make it part of the language.
> Rectangle {
>     id: root
>     persistent property width: 400
>     persistent property height: 300
> }
> What this means is that the application will automatically store its persistent properties on exit and recall those properties on startup. By default they would be initialised to the bound value.  
> It will need some attached properties or other meta data to override default storage locations etc. And we also need to enforce id's to keep values unique per qml file. 

+1 to the idea, but yeah there has to be a way to set the path in the settings tree.

More information about the Development mailing list