QWizard persistence
-
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
-
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
@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.
-
I ivanicy has marked this topic as solved on