The QWizard class provides a framework for wizards. More...
#include <QWizard>
Inherits QDialog.
This class was introduced in Qt 4.3."); wizard.show(); return app.exec(); }()));
Wizards consist of a sequence of QWizardPages. At any time, only one page is shown. A page has the following attributes:
The diagram belows shows how QWizard renders these attributes, assuming they are all present and ModernStyle is used:.
Some wizards are more complex in that they allow different traversal paths based on the information provided by the user. The License Wizard example illustrates this. It provides five wizard pages; depending on which options are selected, the user can reach different pages..() and page().
Goes back to the previous page.
This is equivalent to pressing the Back button.
See also next(), accept(), reject(), and restart().
Returns the button corresponding to role which.
See also setButton() and setButtonText().().().().
Advances to the next page.
This is equivalent to pressing the Next or Commit button.
See also nextId(), back(), accept(), reject(), and restart().().
Returns the page with the given id, or 0 if there is no such page.
See also addPage() and setPage().
Returns the list of page IDs.
This function was introduced in Qt 4.5..
This function was introduced in Qt 4.5.
See also addPage() and setPage().
Restarts the wizard at the start page. This function is called automatically when the wizard is shown.
See also startId().()..
See also addPage() and page()..
Returns true if the given option is enabled; otherwise, returns false.
See also options, setOption(), and setWizardStyle().().
Returns the list of IDs of visited pages, in the order in which the pages were visited.
Pressing Back marks the current page as "unvisited" again.
See also hasVisitedPage().