[Qt-qml] Settings / State Saving proposal for QML
João Abecasis
joao.abecasis at nokia.com
Thu Nov 17 16:34:02 CET 2011
Ahem,
I have a very basic working prototype for a generic Settings API for QML that I would like to bring up for discussion.
The API is pretty minimal, here's example usage:
Rectangle {
id: main
height: 480
width: 640
color: settings.color
Settings {
id: settings
property string color: "blue"
property alias height: main.height
property alias width: main.width
}
}
I pushed the code to a clone of the Desktop Components repository over on gitorious. There's some further information in the commit message:
https://qt.gitorious.org/~biochimia/qt-components/biochimias-desktop/commit/c1ac32929065f24783f4d254d1786dce8202b274
While this needs further refinement and exploration (e.g., ignore the fact that it is using QSettings underneath ;-), what do people around here think of this approach?
Cheers,
João
More information about the Qt-qml
mailing list