kornicameister
29th December 2010, 20:59
I am developing an application which uses a wizard to add new item into the database
every step (page) is checked for errors such as
- vital input field is empty
- some internal condition are not true
the problem I am facing here looks like
- the first welcome page has an id equal to 0, and any next page has an id incremented by 1
- loading the wizard is always successful
- however the condition which should be checked when user tries to leave page id=1 is in fact being checked when entering page id=1 (when leaving welcome page)
it means that every conditon which shuld be checked when leaving is checked when entering the page
hope that is explained clearly
I am looking for the solution to solve this bug but I do not have any working one still.
I tried additional variable and so on...
BTW, to control flow of wizard I reimplemented nextID() method
and below I present some useful debug info which I obtained after opening the wizard.
"Wizard constructing"
0
0
It is weird for me that nextID() method had been called twice after wizard was loaded, as
"Wizard constructing" statement is produced by qDebug at the end of the constructor as control output for me
every step (page) is checked for errors such as
- vital input field is empty
- some internal condition are not true
the problem I am facing here looks like
- the first welcome page has an id equal to 0, and any next page has an id incremented by 1
- loading the wizard is always successful
- however the condition which should be checked when user tries to leave page id=1 is in fact being checked when entering page id=1 (when leaving welcome page)
it means that every conditon which shuld be checked when leaving is checked when entering the page
hope that is explained clearly
I am looking for the solution to solve this bug but I do not have any working one still.
I tried additional variable and so on...
BTW, to control flow of wizard I reimplemented nextID() method
and below I present some useful debug info which I obtained after opening the wizard.
"Wizard constructing"
0
0
It is weird for me that nextID() method had been called twice after wizard was loaded, as
"Wizard constructing" statement is produced by qDebug at the end of the constructor as control output for me