Results 1 to 4 of 4

Thread: How to disable NextButton in QWizard ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3

    Default Re: How to disable NextButton in QWizard ?

    Thanks a million, It solved my problem, i did the following:

    Qt Code:
    1. bool QWizardPage::isComplete()const
    2. {
    3. if (startPushButton->isEnabled()) {
    4. return false;
    5. } else {
    6. return true;
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 

    I am puzzled why I can't disable the QWizard's NextButton in QWizardPage::initializePage(). I did the following:
    Qt Code:
    1. QAbstractButton *button = wizard()->button(QWizard::NextButton);
    2. button->setEnabled(false);
    To copy to clipboard, switch view to plain text mode 

    If you have any suggestions why this is the case, I'd be interested to hear the reason!
    Any help would be appreciated!
    Last edited by litroncn; 27th May 2008 at 02:34. Reason: reformatted to look better

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.