QtGui/qboxlayout.h Source File
Go to the documentation of this file.
46 #ifdef QT_INCLUDE_COMPAT
58 class QBoxLayoutPrivate;
66 Down = TopToBottom, Up = BottomToTop };
72 const char *
name = 0);
73 QT3_SUPPORT_CONSTRUCTOR
QBoxLayout(QLayout *parentLayout, Direction,
int spacing = -1,
74 const char *
name = 0);
75 QT3_SUPPORT_CONSTRUCTOR
QBoxLayout(Direction,
int spacing,
const char *
name = 0);
79 Direction direction()
const;
80 void setDirection(Direction);
82 void addSpacing(
int size);
83 void addStretch(
int stretch = 0);
85 void addWidget(
QWidget *,
int stretch = 0, Qt::Alignment alignment = 0);
86 void addLayout(QLayout *layout,
int stretch = 0);
91 void insertStretch(
int index,
int stretch = 0);
93 void insertWidget(
int index,
QWidget *widget,
int stretch = 0, Qt::Alignment alignment = 0);
94 void insertLayout(
int index, QLayout *layout,
int stretch = 0);
97 void setSpacing(
int spacing);
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;
104 QSize sizeHint()
const;
105 QSize minimumSize()
const;
106 QSize maximumSize()
const;
108 bool hasHeightForWidth()
const;
109 int heightForWidth(
int)
const;
110 int minimumHeightForWidth(
int)
const;
112 Qt::Orientations expandingDirections()
const;
117 void setGeometry(
const QRect&);
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);
146 Q_DISABLE_COPY(QHBoxLayout)
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);
166 Q_DISABLE_COPY(QVBoxLayout)
173 #endif // QBOXLAYOUT_H
#define QT_BEGIN_NAMESPACE
GLuint GLuint GLsizei count
GLint GLint GLsizei GLsizei GLsizei GLint border
GLuint const GLchar * name
GLubyte GLubyte GLubyte GLubyte w