April 28, 2011

micha4fun micha4fun
Lab Rat
12 posts

Can I make QML based apps persistent?

 

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

3 replies

April 28, 2011

Milnadar Milnadar
Lab Rat
26 posts

You mean just to save the rectangle’s position? Or the whole scene?

April 28, 2011

micha4fun micha4fun
Lab Rat
12 posts

The scene containing the rectangles, their position as well as rotation and so on.

April 29, 2011

minimoog77 minimoog77
Lab Rat
128 posts

You could store positions, rotation to a sqlite database [doc.qt.nokia.com] and reload from database as you want.

 
  ‹‹ [Solved]closeEvent() is not working when application is closing.      [SOLVED]Javascript used to remove specific ListElements (works but has one issue) ››

You must log in to post a reply. Not a member yet? Register here!