I am using Qt Designer to create a QWizardPage.
I have imported the file into Qt Creator and it runs fine so far (I can build the project and run the wizard just fine)
Now I need to reimplement the isComplete function but I an unable to understand how to do it. The pages are named wizardPage{,1,2_1,_2}. I would like to know whats the best way to reimplement the isComplete() function now.
In order to overload the
isComplete()function of aQWizardPage, you need to create theQWizardPageyourself. Basically, layout a form — like you would a dialog — for only the page you want. Create a class for that page. This class inherits fromQWizardPageand reimplementsisComplete()for whatever checks you desire. Now in your wizard, find where you want the page to be. Delete all the widgets on it, then right-click and selectPromote Widget.... Enter your class name and the path to the header file. Now when you compile, it should use an instance of your class for that page, including your override forisComplete().