quain
5th December 2010, 17:45
Hello.
I have created a simple wizard for testing purpose. It has two pages with one QLineEdit field (du_email_f and du_name) on each one.
My question is how do i register field?
i have already tried:
ui->page_1->registerField("test", ui->du_email_f);
and
this->page(0)->registerField("test", ui->du_email_f);
Both lines were placed in main wizard clas file in constructor (not at the same time ofc.)
In both cases i get "248: error: 'void QWizardPage::registerField(const QString&, QWidget*, const char*, const char*)' is protected within this context."
I have created a simple wizard for testing purpose. It has two pages with one QLineEdit field (du_email_f and du_name) on each one.
My question is how do i register field?
i have already tried:
ui->page_1->registerField("test", ui->du_email_f);
and
this->page(0)->registerField("test", ui->du_email_f);
Both lines were placed in main wizard clas file in constructor (not at the same time ofc.)
In both cases i get "248: error: 'void QWizardPage::registerField(const QString&, QWidget*, const char*, const char*)' is protected within this context."