I did what you said and it doesnt work either
CFillTheBox::CFillTheBox()
:QWizard()
{
setPage(FillTheBoxPage_Intro, &mIntroPage);
setPage(FillTheBoxPage_iTunes,&miTunesPage);
setPage(FillTheBoxPage_Scan, &mSearchPage);
setOption(QWizard::NoBackButtonOnStartPage,true);
setStartId(FillTheBoxPage_Intro);
setWindowTitle(tr("Fill the box"));
setButton
(QWizard
::BackButton,
new QPushButton("back"));
setButton
(QWizard
::CancelButton,
new QPushButton("cancel"));
setButton
(QWizard
::FinishButton,
new QPushButton("finish"));
}
CFillTheBox::CFillTheBox()
:QWizard()
{
setPage(FillTheBoxPage_Intro, &mIntroPage);
setPage(FillTheBoxPage_iTunes,&miTunesPage);
setPage(FillTheBoxPage_Scan, &mSearchPage);
setOption(QWizard::NoBackButtonOnStartPage,true);
setStartId(FillTheBoxPage_Intro);
setWindowTitle(tr("Fill the box"));
setButton(QWizard::BackButton,new QPushButton("back"));
setButton(QWizard::CancelButton,new QPushButton("cancel"));
setButton(QWizard::FinishButton,new QPushButton("finish"));
}
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);
Bookmarks