45 #include <QtGui/qlayout.h> 46 #ifdef QT_INCLUDE_COMPAT 47 #include <QtGui/qwidget.h> 66 Down = TopToBottom,
Up = BottomToTop };
72 const char *
name = 0);
74 const char *
name = 0);
82 void addSpacing(
int size);
83 void addStretch(
int stretch = 0);
90 void insertSpacing(
int index,
int size);
91 void insertStretch(
int index,
int stretch = 0);
93 void insertWidget(
int index,
QWidget *
widget,
int stretch = 0, Qt::Alignment alignment = 0);
99 bool setStretchFactor(
QWidget *w,
int stretch);
100 bool setStretchFactor(
QLayout *
l,
int stretch);
101 void setStretch(
int index,
int stretch);
102 int stretch(
int index)
const;
119 inline QT3_SUPPORT
int findWidget(
QWidget* w) {
return indexOf(w);}
139 int spacing = -1,
const char *
name = 0);
140 QT3_SUPPORT_CONSTRUCTOR QHBoxLayout(
QLayout *parentLayout,
141 int spacing = -1,
const char *
name = 0);
142 QT3_SUPPORT_CONSTRUCTOR QHBoxLayout(
int spacing,
const char *
name = 0);
159 int spacing = -1,
const char *
name = 0);
160 QT3_SUPPORT_CONSTRUCTOR QVBoxLayout(
QLayout *parentLayout,
161 int spacing = -1,
const char *
name = 0);
162 QT3_SUPPORT_CONSTRUCTOR QVBoxLayout(
int spacing,
const char *
name = 0);
173 #endif // QBOXLAYOUT_H
virtual QLayoutItem * itemAt(int index) const =0
Must be implemented in subclasses to return the layout item at index.
The QBoxLayout class lines up child widgets horizontally or vertically.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual void addItem(QLayoutItem *)=0
Implemented in subclasses to add an item.
virtual int minimumHeightForWidth(int) const
Returns the minimum height this widget needs for the given width, w.
#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
void invalidate()
Reimplemented Function
virtual bool hasHeightForWidth() const
Returns true if this layout's preferred height depends on its width; otherwise returns false...
Qt::Orientations expandingDirections() const
Returns whether this layout can make use of more space than sizeHint().
QSize maximumSize() const
Returns the maximum size of this layout.
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.
Direction
This type is used to determine the direction of a box layout.
The QLayoutItem class provides an abstract item that a QLayout manipulates.
The QSpacerItem class provides blank space in a layout.
virtual int indexOf(QWidget *) const
Searches for widget widget in this layout (not including child layouts).
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.
The QHBoxLayout class lines up widgets horizontally.
QSize minimumSize() const
Returns the minimum size of this layout.
virtual int heightForWidth(int) const
Returns the preferred height for this layout item, given the width w.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QVBoxLayout class lines up widgets vertically.
Qt::LayoutDirection direction