8#include <private/qframe_p.h>
126 return d_func()->layout->addWidget(
widget);
146 return d_func()->layout->insertWidget(
index,
widget);
162 d_func()->layout->removeWidget(
widget);
179 d_func()->layout->setCurrentIndex(
index);
184 return d_func()->layout->currentIndex();
194 return d_func()->
layout->currentWidget();
210 qWarning(
"QStackedWidget::setCurrentWidget: widget %p not contained in stack",
widget);
213 d->layout->setCurrentWidget(
widget);
224 return d_func()->layout->indexOf(
widget);
248 return d_func()->layout->count();
259#include "moc_qstackedwidget.cpp"
The QFrame class is the base class of widgets that can have a frame.
bool event(QEvent *e) override
\reimp
virtual QWidget * widget() const
If this item manages a QWidget, returns that widget.
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 widgetRemoved(int index)
This signal is emitted whenever a widget is removed from the layout.
void currentChanged(int index)
This signal is emitted whenever the current widget in the layout changes.
Combined button and popup list for selecting options.