iam using the QT4 version...
Here my question is how to disable the buttons in intermediate PAges of a QWizard???
iam using the QT4 version...
Here my question is how to disable the buttons in intermediate PAges of a QWizard???
have you tried calling QWizard::button(WizardButton which) and then
button->setEnabled(false)?
Ie to disable CustomButton1 :
Qt Code:
wizard()->setOption(QWizard::HaveCustomButton1, false);To copy to clipboard, switch view to plain text mode
hey,
in Qt4 there are some methods to handle the standard buttons of QWizard.
setCommitPage( true) - disables Back button
setFinalPage(true) - shows Finish Button, not Next, if isComplete returns true
implement isComplete() - to disable/enable Next or Finish Button
reimplement isFinalPage() - to show Finish Button
Read docs to do more fine things
Bye
Please read the detailed description of QWizardPage docs. QWizardPage provides five virtual functions that can be reimplemented to provide custom behavior.
J-P Nurmi
yuriry (12th October 2008)
Bookmarks