Great, for the QWizard object I have connected the accepted() signal to the slot getData():
connect(this, SIGNAL(accepted()), this, SLOT(getData()));
connect(this, SIGNAL(accepted()), this, SLOT(getData()));
To copy to clipboard, switch view to plain text mode
which is then implemented to get the data:
void ProfileWizard::getData()
{
QString name
= field
("ProfileName").
toString();
.....
}
void ProfileWizard::getData()
{
QString name = field("ProfileName").toString();
.....
}
To copy to clipboard, switch view to plain text mode
This worked for me. I could also use the QWizardPage::initializePage () function in the "next" page to get data from the "previous page" but I had the problem I could not figure out how to get data from the last page. A possible workaround was to have one more page to be the final one without getting any data. Of course, the suggested solution does make much more sense.
Thanks,
Jan
Bookmarks