Results 1 to 9 of 9

Thread: QWizard

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Feb 2011
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QWizard

    I did what you said and it doesnt work either
    Qt Code:
    1. CFillTheBox::CFillTheBox()
    2. :QWizard()
    3. {
    4.  
    5. setPage(FillTheBoxPage_Intro, &mIntroPage);
    6. setPage(FillTheBoxPage_iTunes,&miTunesPage);
    7. setPage(FillTheBoxPage_Scan, &mSearchPage);
    8. setOption(QWizard::NoBackButtonOnStartPage,true);
    9. setStartId(FillTheBoxPage_Intro);
    10. setWindowTitle(tr("Fill the box"));
    11. setButton(QWizard::BackButton,new QPushButton("back"));
    12. setButton(QWizard::CancelButton,new QPushButton("cancel"));
    13. setButton(QWizard::FinishButton,new QPushButton("finish"));
    14. }
    To copy to clipboard, switch view to plain text mode 
    It still shows the "next" button
    The Qwizard has default buttons and all the default buttons are shown in the Qwizard as defult, the setButton function just create different buttons to the one that exists or create other buttons that dont exists as default in the Qwizard but doesnt hide the next button i dont want to show.
    anyway I found a way to hide the next button:

    QList<QWizard::WizardButton> layout;
    layout << QWizard::Stretch << QWizard::BackButton << QWizard::CancelButton << QWizard::FinishButton;
    setButtonLayout(layout);
    Last edited by high_flyer; 22nd February 2011 at 11:33. Reason: code tags

Similar Threads

  1. QWizard fit
    By baray98 in forum Qt Programming
    Replies: 7
    Last Post: 14th November 2010, 16:27
  2. QWizard
    By rmagro in forum Qt Programming
    Replies: 1
    Last Post: 20th October 2009, 16:12
  3. Help with QWizard
    By afflictedd2 in forum Qt Programming
    Replies: 3
    Last Post: 14th April 2009, 21:23
  4. QWizard
    By rmagro in forum Qt Programming
    Replies: 8
    Last Post: 26th September 2008, 20:41
  5. QWizard
    By steg90 in forum Qt Programming
    Replies: 6
    Last Post: 14th December 2007, 09:37

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.