_Dron_
28th January 2015, 07:55
Hello,
I have some problems with custom wizard.
On first page user enters some text in qlineedit. Than he presses Next. After that the wizard must make a query to MySQL, get data, check it and:
1. If data is good - set next page id (the value of id depends on data)
2. If data is bad - don't do anything, just stay on current page, so the user can correct text in qlineedit.
How to do it? Where and when wizard must make a query? I don't understand Qt wizard logic.
I saws examples in Qt, saw that I should override nextId() etc. But there is no examples when wizard takes data outside.
I have some problems with custom wizard.
On first page user enters some text in qlineedit. Than he presses Next. After that the wizard must make a query to MySQL, get data, check it and:
1. If data is good - set next page id (the value of id depends on data)
2. If data is bad - don't do anything, just stay on current page, so the user can correct text in qlineedit.
How to do it? Where and when wizard must make a query? I don't understand Qt wizard logic.
I saws examples in Qt, saw that I should override nextId() etc. But there is no examples when wizard takes data outside.