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:
class BaseWizard : public QWizard
class BaseWizard : public QWizard
To copy to clipboard, switch view to plain text mode
And I've tried this on the constructor:
BaseWizard
::BaseWizard(QWidget *parent
) : QWizard(parent),
ui(new Ui::BaseWizard)
{
this->button(QWizard::NextButton)->setVisible(false);
this->button(QWizard::CancelButton)->setVisible(false);
this->button(QWizard::BackButton)->setVisible(false);
this->button(QWizard::FinishButton)->setVisible(false);
this->button(QWizard::CustomButton1)->setVisible(false);
BaseWizard::BaseWizard(QWidget *parent) :
QWizard(parent),
ui(new Ui::BaseWizard)
{
this->button(QWizard::NextButton)->setVisible(false);
this->button(QWizard::CancelButton)->setVisible(false);
this->button(QWizard::BackButton)->setVisible(false);
this->button(QWizard::FinishButton)->setVisible(false);
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!
Bookmarks