PDA

View Full Version : [help]: How to disable the next button of a QWizardPage?



dongli
30th June 2009, 15:04
Hi,

How to disable the next button of a QWizardPage? I have tried

this->wizard()->button(QWizard::NextButton)->setDisable(true);

but it didn't work.
:confused:

wysota
30th June 2009, 20:55
Take a look at QWizardPage::isComplete().

dongli
1st July 2009, 02:06
Hi, wysota

Thank you for reply. I just have reimplemented isCompleted(), and it works! :D

TeddybearCrisis
2nd June 2010, 17:25
Hi Guys,

can you give me a hint on how to reimplement isComplete when I used the Qt Designer to create my WizardPages? Do I really need to create WizardPage classes for every page I used within the Designer just to enable/disabel the prev/next buttons?

Thanks in advance
Sönke

P.S.: This is the context - DMFCam (http://soenke-greve.de/?page_id=480)

pkjag
11th September 2013, 18:32
Yes for efficiency you need to create a class for every page