4#ifndef QSTACKEDLAYOUT_H
5#define QSTACKEDLAYOUT_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qlayout.h>
19 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged)
39 int currentIndex()
const;
42 int count()
const override;
44 StackingMode stackingMode()
const;
45 void setStackingMode(StackingMode stackingMode);
62 void setCurrentIndex(
int index);
The QLayoutItem class provides an abstract item that a QLayout manipulates.
virtual bool hasHeightForWidth() const
Returns true if this layout's preferred height depends on its width; otherwise returns false.
virtual int heightForWidth(int) const
Returns the preferred height for this layout item, given the width, which is not used in this default...
virtual QWidget * widget() const
If this item manages a QWidget, returns that widget.
virtual QSize sizeHint() const =0
Implemented in subclasses to return the preferred size of this item.
The QLayout class is the base class of geometry managers.
void addWidget(QWidget *w)
Adds widget w to this layout in a manner specific to the layout.
virtual void addItem(QLayoutItem *)=0
Implemented in subclasses to add an item.
virtual QLayoutItem * itemAt(int index) const =0
Must be implemented in subclasses to return the layout item at index.
virtual QLayoutItem * takeAt(int index)=0
Must be implemented in subclasses to remove the layout item at index from the layout,...
QSize minimumSize() const override
Returns the minimum size of this layout.
virtual int count() const =0
Must be implemented in subclasses to return the number of items in the layout.
virtual void setGeometry(const QRect &) override
\reimp
\inmodule QtCore\reentrant
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.
GLfloat GLfloat GLfloat w
[0]
GLenum GLenum GLsizei count
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent