Re: QWizard noob question
You can use QWizard::field(). Connect currentIdChanged() to a slot where you check if the current page is the last one and then get the field values to validate them.
Re: QWizard noob question
How would you connect currentIdChanged() to a slot ? can you make a small example?
Re: QWizard noob question
Are you subclassing QWizard or using it from another class?
Code:
connect(m_wizard, SIGNAL(currentIdChanged(int)),
this, SLOT(mySlot()));
Re: QWizard noob question
Ahhh a noob mistake... I forgot the int in currentIdChanged(). Thanks! It works now.
Re: QWizard noob question
I found another solution. By reimplementing void QWizardPage::initializePage () [virtual], you can prepare the page before it is shown.
http://doc.trolltech.com/4.5/qwizard...initializePage