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. QWizard persistence
Qt 6.11 is out! See what's new in the release blog

QWizard persistence

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 335 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.
  • ivanicyI Offline
    ivanicyI Offline
    ivanicy
    wrote on last edited by
    #1

    Hello!

    I have a QWizard with two QWizardPages. When I am on the first page an click on the "Next" button and go back, all the fields' values are loaded correctly but, when I am on the second page and I click on the "Back" button an go again to the second page, this second page's values are not loaded again.

    How can I fix it?

    Thank you very much

    JonBJ 1 Reply Last reply
    0
    • ivanicyI ivanicy

      Hello!

      I have a QWizard with two QWizardPages. When I am on the first page an click on the "Next" button and go back, all the fields' values are loaded correctly but, when I am on the second page and I click on the "Back" button an go again to the second page, this second page's values are not loaded again.

      How can I fix it?

      Thank you very much

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #2

      @ivanicy
      Creating Linear Wizards:

      If the user presses Back, cleanupPage() is called (which in turn calls QWizardPage::cleanupPage()). The default implementation resets the page's fields to their original values (the values they had before initializePage() was called). If you want the Back button to be non-destructive and keep the values entered by the user, simply enable the IndependentPages option.

      1 Reply Last reply
      3
      • ivanicyI ivanicy has marked this topic as solved on

      • Login

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