So i did this:
connect(checkmeCheckBox, SIGNAL(toggled()),wizard1->button(QWizard::NextButton), SLOT(reactToToggle()));
...
...
...
//for all the checkboxes in myPage
int myPage::reactToToggle(bool checked)
{
static int i = 0;
if(checked)
++i;
return i;
}
void myPage::returns(bool checked)
{
if(reactToToggle(checked)== 3)
wizard1->button(QWizard::NextButton)->setEnabled(true);
else
wizard1->button(QWizard::NextButton)->setDisabled(true);
}
connect(checkmeCheckBox, SIGNAL(toggled()),wizard1->button(QWizard::NextButton), SLOT(reactToToggle()));
...
...
...
//for all the checkboxes in myPage
int myPage::reactToToggle(bool checked)
{
static int i = 0;
if(checked)
++i;
return i;
}
void myPage::returns(bool checked)
{
if(reactToToggle(checked)== 3)
wizard1->button(QWizard::NextButton)->setEnabled(true);
else
wizard1->button(QWizard::NextButton)->setDisabled(true);
}
To copy to clipboard, switch view to plain text mode
but the compiler returns a SIGSEGV error, is there anything wrong with my implementation apart from the SIGSEGV exception???
Bookmarks