Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_dialogs_qwizard.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5int LicenseWizard::nextId() const
6{
7 switch (currentId()) {
8 case Page_Intro:
9 if (field("intro.evaluate").toBool()) {
10 return Page_Evaluate;
11 } else {
12 return Page_Register;
13 }
14 case Page_Evaluate:
15 return Page_Conclusion;
16 case Page_Register:
17 if (field("register.upgradeKey").toString().isEmpty()) {
18 return Page_Details;
19 } else {
20 return Page_Conclusion;
21 }
22 case Page_Details:
23 return Page_Conclusion;
24 case Page_Conclusion:
25 default:
26 return -1;
27 }
28}
30
31
33MyWizard::MyWizard(QWidget *parent)
34 : QWizard(parent)
35{
36 ...
37 QList<QWizard::WizardButton> layout;
40 setButtonLayout(layout);
41 ...
42}
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
The QWizard class provides a framework for wizards.
Definition qwizard.h:19
@ BackButton
Definition qwizard.h:30
@ FinishButton
Definition qwizard.h:33
@ Stretch
Definition qwizard.h:39
@ NextButton
Definition qwizard.h:31
@ CancelButton
Definition qwizard.h:34
QVBoxLayout * layout
char * toString(const MyType &t)
[31]
QT_BEGIN_NAMESPACE bool toBool(const QString &str)
Definition utils.h:14