21 stackedLayout->
addWidget(firstPageWidget);
22 stackedLayout->
addWidget(secondPageWidget);
23 stackedLayout->
addWidget(thirdPageWidget);
44int main(
int argc,
char *argv[])
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment.
void addLayout(QLayout *layout, int stretch=0)
Adds layout to the end of the box, with serial stretch factor stretch.
The QComboBox widget is a combined button and popup list.
void activated(int index)
This signal is sent when the user chooses an item in the combobox.
void addItem(const QString &text, const QVariant &userData=QVariant())
Adds an item to the combobox with the given text, and containing the specified userData (stored in th...
QObject * parent() const
Returns a pointer to the parent object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
The QStackedLayout class provides a stack of widgets where only one widget is visible at a time.
void setCurrentIndex(int index)
int addWidget(QWidget *w)
Adds the given widget to the end of this layout and returns the index position of the widget.
The QVBoxLayout class lines up widgets vertically.
QApplication app(argc, argv)
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent