Thank you very much, this is working now.
Can I ask one more quesiton?
Is it possible to change mandatority of the fielf later as a condition from some event? Like if a user chooses "Yes" in the comboBox, the field is mandatory, if user chooses "No", the field is not madatory. I have tried:
: QWizardPage(parent)
{
.....
registerField("field*", lineEdit);
....
}
void Page::event()
{
if (comboBox->currentIndex() == 0) registerField("field*", lineEdit)
else registerField("field", lineEdit)
}
Page::Page (QWidget *parent)
: QWizardPage(parent)
{
.....
registerField("field*", lineEdit);
....
}
void Page::event()
{
if (comboBox->currentIndex() == 0) registerField("field*", lineEdit)
else registerField("field", lineEdit)
}
To copy to clipboard, switch view to plain text mode
... i.e. put the "field" with the * or without it?
Bookmarks