Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can I make QML based apps persistent?
Forum Updated to NodeBB v4.3 + New Features

Can I make QML based apps persistent?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    micha4fun
    wrote on 28 Apr 2011, 16:54 last edited by
    #1

    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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Milnadar
      wrote on 28 Apr 2011, 16:58 last edited by
      #2

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        micha4fun
        wrote on 28 Apr 2011, 16:59 last edited by
        #3

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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          minimoog77
          wrote on 29 Apr 2011, 00:05 last edited by
          #4

          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 Reply Last reply
          0

          1/4

          28 Apr 2011, 16:54

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved