i am creating a wizard in which in first page, i ll be asking a number( say num in a textbox) from user and in next page i ll be creating as many textboxes as entered by user in previous page (that is in num)..
initializePage() function of nextpage is:
void NextPage::initializePage() //let NextPage be a class
{
no_of_textboxes=field("num").toInt(); //is not working however
noOfTextboxes=field("num").toString();//is working
}
where no_of_textboxes(int type) and noOfTextboxes(QString type) are declared in class NextPage
nd num is registered field of class PreviousPage.
I tried
no_of_textboxes=noOfTextboxes.toInt(); even this didn't work...
Plz help ...