Can I make QML based apps persistent?
QML and Qt Quick
4
Posts
3
Posters
2.5k
Views
1
Watching
-
wrote on 28 Apr 2011, 16:54 last edited by
Hi,
just a simple example: I have a scene build in QML with 2 simple Rectangle items. They can be moved with the mouse in the scene. Is it possible to save this scene at any point and load it later from there again? If it doesnt work out of the box, maybe somebody knows a working approach / link here?
I really hope for some short insights.
Thanks in advance
Micha -
wrote on 28 Apr 2011, 16:58 last edited by
You mean just to save the rectangle's position? Or the whole scene?
-
wrote on 28 Apr 2011, 16:59 last edited by
The scene containing the rectangles, their position as well as rotation and so on.
-
wrote on 29 Apr 2011, 00:05 last edited by
You could store positions, rotation to a sqlite "database":http://doc.qt.nokia.com/4.7/qdeclarativeglobalobject.html#database-api and reload from database as you want.
1/4