7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qlayout.h>
9#ifdef QT_INCLUDE_COMPAT
10#include <QtWidgets/qwidget.h>
26 Down = TopToBottom,
Up = BottomToTop };
33 void setDirection(Direction);
35 void addSpacing(
int size);
36 void addStretch(
int stretch = 0);
44 void insertStretch(
int index,
int stretch = 0);
53 bool setStretchFactor(
QWidget *
w,
int stretch);
54 bool setStretchFactor(
QLayout *l,
int stretch);
55 void setStretch(
int index,
int stretch);
56 int stretch(
int index)
const;
70 int count()
const override;
The QBoxLayout class lines up child widgets horizontally or vertically.
Direction
This type is used to determine the direction of a box layout.
The QHBoxLayout class lines up widgets horizontally.
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 int minimumHeightForWidth(int) const
Returns the minimum height this widget needs for the given width, w.
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.
int spacing
the spacing between widgets inside the layout
QSize maximumSize() const override
Returns the maximum size of this layout.
virtual void setSpacing(int)
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,...
Qt::Orientations expandingDirections() const override
Returns whether this layout can make use of more space than sizeHint().
QSize minimumSize() const override
Returns the minimum size of this layout.
void invalidate() override
\reimp
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 QSpacerItem class provides blank space in a layout.
The QVBoxLayout class lines up widgets vertically.
Combined button and popup list for selecting options.
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent