42 #ifndef QSTACKEDLAYOUT_H 43 #define QSTACKEDLAYOUT_H 45 #include <QtGui/qlayout.h> 79 int currentIndex()
const;
80 #ifdef Q_NO_USING_KEYWORD 100 void widgetRemoved(
int index);
101 void currentChanged(
int index);
104 void setCurrentIndex(
int index);
105 void setCurrentWidget(
QWidget *w);
115 #endif // QSTACKEDLAYOUT_H virtual QLayoutItem * itemAt(int index) const =0
Must be implemented in subclasses to return the layout item at index.
#define QT_END_NAMESPACE
This macro expands to.
#define QDOC_PROPERTY(text)
virtual void addItem(QLayoutItem *)=0
Implemented in subclasses to add an item.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
virtual void setGeometry(const QRect &)
Reimplemented Function
The QStackedLayout class provides a stack of widgets where only one widget is visible at a time...
virtual QLayoutItem * takeAt(int index)=0
Must be implemented in subclasses to remove the layout item at index from the layout, and return the item.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QLayoutItem class provides an abstract item that a QLayout manipulates.
The QLayout class is the base class of geometry managers.
virtual int count() const =0
Must be implemented in subclasses to return the number of items in the layout.
void addWidget(QWidget *w)
Adds widget w to this layout in a manner specific to the layout.
virtual QSize sizeHint() const =0
Implemented in subclasses to return the preferred size of this item.
The QRect class defines a rectangle in the plane using integer precision.
StackingMode
This enum specifies how the layout handles its child widgets regarding their visibility.
QSize minimumSize() const
Returns the minimum size of this layout.
virtual QWidget * widget()
If this item is a QWidget, it is returned as a QWidget; otherwise 0 is returned.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)