Hi again!
I'm making a little application. I've do it with QWizard and QWizardPages. I Have added 2 CustomButtons to the wizard so it has 5 buttons down: ButA, ButB, Back, Next/Finish, and Cancel.

ButA and ButB don't have to appear in all WizardPages.
Eg: WP0: just ButB
WP1: ButA and ButB

To do that, I have:

Qt Code:
  1. void WP0::initializePage()
  2. {
  3. wizard()->button(QWizard::CustomButton1)->setVisible(false);
  4. }
To copy to clipboard, switch view to plain text mode 
With that when the app starts, you can't see butA. BUT if you go to the next page (where you see ButA and ButB) and then you click on BackButton, then you see ButA in WP0. I supose that then you click on BackButton there is no call to WP0::initializePage() so my question is: how or where should I call that wizard()->button(QWizard::CustomButton1)->setVisible(false);
to never see ButA on WP0 ? Or what should I do?