Hello,

I have not seen any examples that illustrate use of custom classes to override methods in QWizardPage class. All wizard examples I've seen are written outside of the designer. For instance, in Qt Creator I create a Wizard with two pages. All the widgets are contained in the ui file and I need access to each of the page's widgets as well as the methods i.e. initializePage(), nextId() etc. in both pages. The new project creation wizard creates an application with one class and the ui file. How do I override the two mentioned methods? In the header file created by the project wizard in Qt Creator, I have the following default header file:

Qt Code:
  1. #include <QWizard>
  2. #include <QtCore>
  3. #include "Interface.h"
  4.  
  5. namespace Ui
  6. {
  7. class FlashWizard;
  8. class IntroPage;
  9. }
  10.  
  11. class FlashWizard : public QWizard
  12. {
  13. Q_OBJECT
  14.  
  15. public:
  16. explicit FlashWizard(QWidget *parent = 0);
  17. virtual ~FlashWizard();
  18.  
  19. private:
  20. Ui::FlashWizard* ui;
  21. QString SupportFile;
  22. QString iniFile;
  23. QSettings* settings;
  24. ushort Language_Id;
  25. bool convertedOK;
  26.  
  27.  
  28. };
  29.  
  30. class IntroPage : public QWizardPage
  31. {
  32. Q_OBJECT
  33.  
  34. public:
  35.  
  36. IntroPage(QWidget *parent = 0);
  37.  
  38. void initializePage();
  39. int nextId() const;
  40.  
  41.  
  42. };
  43.  
  44. #endif // FLASHWIZARD_H
To copy to clipboard, switch view to plain text mode 

I try and implement the method initializePage() as:

Qt Code:
  1. void IntroPage::initializePage()
  2. {
  3. setSubTitle(tr("Blah-Bah"));
  4. }
To copy to clipboard, switch view to plain text mode 

That code is never executed. I can only access widgets from the main class - FlashWizard and get/set properties from the ui object, created in the main class. I am required to create UI objects in the designer and access them in code as per projects requirements. I am stuck as how to do that.

I hope that is clear, Thanks in advance