24 #ifndef KLFFLOWLAYOUT_H 25 #define KLFFLOWLAYOUT_H 29 #include <QLayoutItem> 32 struct KLFFlowLayoutPrivate;
56 KLFFlowLayout(QWidget *parent,
int margin = -1,
int hspacing = -1,
int vspacing = -1);
63 virtual void addItem(QLayoutItem *item,
int hstretch,
int vstretch);
64 virtual void addLayout(QLayout *l,
int hstretch = 0,
int vstretch = 0);
69 virtual int count()
const;
70 virtual QLayoutItem *
itemAt(
int index)
const;
71 virtual QLayoutItem *
takeAt(
int index);
87 void clearAll(
bool deleteItems =
true);
94 KLFFlowLayoutPrivate *d;
A Layout that places widgets left to right, top to bottom.
int horizontalSpacing() const
virtual void addWidget(QWidget *w, int hstretch=0, int vstretch=0, Qt::Alignment align=0)
virtual void addLayout(QLayout *l, int hstretch=0, int vstretch=0)
virtual bool event(QEvent *event)
void setHorizontalSpacing(int spacing)
Distribute the extra space inbetween the widgets to fill the line.
void setVerticalSpacing(int spacing)
virtual QLayoutItem * itemAt(int index) const
int verticalSpacing() const
virtual int heightForWidth(int width) const
virtual bool eventFilter(QObject *obj, QEvent *event)
virtual int count() const
Leave all extra space at end of line.
virtual bool hasHeightForWidth() const
virtual QSize maximumSize() const
virtual void invalidate()
KLFFlowLayout(QWidget *parent, int margin=-1, int hspacing=-1, int vspacing=-1)
Leave all extra space at beginning of line.
virtual Qt::Orientations expandingDirections() const
virtual QLayoutItem * takeAt(int index)
virtual QSize minimumSize() const
virtual QSize sizeHint() const
void setGeometry(const QRect &rect)
virtual void addItem(QLayoutItem *item)
Give the extra space to the widgets to stretch, don't flush.
void clearAll(bool deleteItems=true)