title: How do I make getters/setters in the main QWizard that are accessible to every QWizardPage?
body: <p>I have a QWizard being created in Qt Creator. My wizard pages are all custom and being promoted to custom classes. I have tried casting the parentWidget() as the main wizards type and I also tried passing in the parent through the QWizardPages constructor as the QWizard page type (MainWizard in my case).</p>
  
  <p>Upon further investigation I have noticed that upon the creation of the QWizardPages, they are not receiving the parent object! This is done in the generated code (ui_mainwizard.h).</p>
  
  <pre><code>page1 = new IntroPage();
      page1-&gt;setObjectName(QStringLiteral("page1"));
      MainWizard-&gt;addPage(page1);
      wizardPage2 = new OptionsPage();
      wizardPage2-&gt;setObjectName(QStringLiteral("wizardPage2"));
      MainWizard-&gt;addPage(wizardPage2);
  </code></pre>
  
  <p>Etc....</p>
  
  <p>So this means that my methods have no way of working! The variables I am needing to save are primarily QStrings that represent file names, and custom objects from some of my API classes. Are field mechanisms my best bet? Or maybe sometype of global object? I'm not really sure how to make all the pieces fit to where I can access these 'global' variables between all my QWizardPages. Thanks!</p>