PDA

View Full Version : Help needed in QWizard



raju@123
29th September 2010, 07:41
Hi,

I am facing issue using QWizard and QWizardPage.I have created five pages using QWizardPage. I am able to call other application by clicking the FinishButton on last page using the below code.

void QFifthPage::setVisible(bool visible)
{
QWizardPage::setVisible(visible);
if (visible)
{
QAbstractButton* button = wizard()->button(QWizard::FinishButton);
connect(button, SIGNAL(clicked()), this, SLOT(finishButtonClicked()));
}

void QFifthPage::finishButtonClicked()
{
mainWindow = new MainWindow(this);
mainWindow->showMaximized();
}



But same thing i am not able to do by clicking the BackButton on first page.Can you help me to solve this issue?

I want to call the same application by clicking the back button on first page also.



Thanks & Regards,

Rajesh