Hi,

I have a wizard app with its wizardpages and in some of them, I want to hide ALL wizardbuttons.

My wizard is declared this way:

Qt Code:
  1. class BaseWizard : public QWizard
To copy to clipboard, switch view to plain text mode 

And I've tried this on the constructor:
Qt Code:
  1. BaseWizard::BaseWizard(QWidget *parent) :
  2. QWizard(parent),
  3. ui(new Ui::BaseWizard)
  4. {
  5.  
  6. this->button(QWizard::NextButton)->setVisible(false);
  7. this->button(QWizard::CancelButton)->setVisible(false);
  8. this->button(QWizard::BackButton)->setVisible(false);
  9. this->button(QWizard::FinishButton)->setVisible(false);
  10. this->button(QWizard::CustomButton1)->setVisible(false);
To copy to clipboard, switch view to plain text mode 

And also with setEnabled(false) and with hide() and yes, Cancel, and CutomButton disappear BUT Next and Back always remain there. I tried to put it too in the initializepage() of the wizardpage but its the same.

Any idea of why do that buttons saty there? Or what am I doing wrong?

Thank you so much!