Can somebody explain how to use QWizard, please.
Hi and welcome to devnet,
You have several examples in the Qt documentation that shows how to use QWizard e.g. the Class Wizard Example
Do you have any specific questions ?
As i unerstand for every page i must create a diferent class and then add them into my wizard or can i do it all in one clas? Can you show me an exapel how too make a next button. Sorry for that im an a beginer and it is a litel hard for me to undersatn it only from the documentation.
It depends on your page. You can have on common template that you can re-use to create your pages. Or on the other hand, you need some special thing to be done from your target
You don't have to create that button yourself, QWizard will do it for you
I will try provide some comments related to how I usually use it.
1." QWizard inherits QDialog and represents a wizard.
To create your own wizards, you can use these classes directly, or you can subclass them for more control."
QWizard will manage pages and all the controls you need for transition from page, etc.
You may or may not need to subclass QWizard depending on functionality you provide.
I usually do it anyway, but often it is not required.
There is no normally any need to add any custom controls (beside pages which are done separately)
All required buttons are provided by QWizard.
- "Each page is a QWizardPage (a QWidget subclass). To create your own wizards, you can use these classes directly, or you can subclass them for more control."
I usually subclass using QWidget template and promoting it in designer to QWizardPage.
This lets me put controls on the pages in the designer.
A you can see not much was added which is not available in documentation.
A Trivial Example example from documentation shows you how it can be done without subclassing.