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?
QtWS25 Last Chance

Can I make QML based apps persistent?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 2.5k Views
  • 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 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 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 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 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

          • Login

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