raju@123
29th September 2010, 06: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
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