One option would be to connect to the currentIdChanged() signal and do the button setup there.
Cheers,
_
One option would be to connect to the currentIdChanged() signal and do the button setup there.
Cheers,
_
Hi,
Do you mean to connect wp1 currentIdChanged() to wp0 custombutton ???
I'm still trying to understand how connect works![]()
That is a signal of QWizard, not of the pages.
You connect it to a slot, ideally in the class that adds the two additional buttons, and in that slot you change the button visibility based on which page is currently active.
Cheers,
_
Hi,
I think I understand what you mean. How should I construct that connect? If I am in Wizard class which has the buttons:
connect(?,SIGNAL(currentIdChanged(int)),this,SLOT( ConfigMyButtons(int))
and then make the function like:
void Wizard::ConfigMyButtons(int i)
{
switch (i)
[...]
}
Last edited by roseicollis; 18th December 2014 at 16:59.
Srry it was an answer to another post and I don't know how did I put it here, I already edited it.
okok hank you!
Bookmarks