Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Save and restore state
Forum Updated to NodeBB v4.3 + New Features

Save and restore state

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 311 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.
  • O Offline
    O Offline
    ollarch
    wrote on last edited by
    #1

    Hi,

    My application use "saveState()" and "saveGemetry()". I have upgraded from Qt 5.7.0 to 5.15.0 and I'm facing problems with state and geometry restoration. I have checked the values saved with a diff tool and it seems that are different.
    The values are stored into an XML file using QXmlStreamWriter and converting the QByteArray returned by "saveState()" to Base 64 because wirting the QByteArray does not store the full value.

    Writing and restoring from scratch using version 5.15.0 works well but I don't want to force users to layout the widgets from scratch.

    Thanks,

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      I'm afraid there is no solution for your problem. The version argument doesn't actually do proper versioning so I'm afraid they are just incompatible.
      There are a number or tickets open regarding making saveState more flexible but some are >10 years old so I wouldn't count on this being resolved anytime (soon)

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • O Offline
        O Offline
        ollarch
        wrote on last edited by
        #3

        Hi,

        Thank you for your reply. So, I will layout application again.

        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