Go to the documentation of this file.
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);
61 virtual void addItem(QLayoutItem *item)
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;
virtual void addLayout(QLayout *l, int hstretch=0, int vstretch=0)
virtual QLayoutItem * takeAt(int index)
Distribute the extra space inbetween the widgets to fill the line.
KLFFlowLayout(QWidget *parent, int margin=-1, int hspacing=-1, int vspacing=-1)
Give the extra space to the widgets to stretch, don't flush.
int horizontalSpacing() const
virtual Qt::Orientations expandingDirections() const
void clearAll(bool deleteItems=true)
virtual QLayoutItem * itemAt(int index) const
A Layout that places widgets left to right, top to bottom.
void setHorizontalSpacing(int spacing)
virtual void addWidget(QWidget *w, int hstretch=0, int vstretch=0, Qt::Alignment align=0)
virtual QSize maximumSize() const
virtual void invalidate()
virtual QSize minimumSize() const
virtual QSize sizeHint() const
Leave all extra space at end of line.
void setVerticalSpacing(int spacing)
Leave all extra space at beginning of line.
virtual void addItem(QLayoutItem *item)
virtual int heightForWidth(int width) const
virtual bool eventFilter(QObject *obj, QEvent *event)
virtual int count() const
virtual bool hasHeightForWidth() const
virtual bool event(QEvent *event)
void setGeometry(const QRect &rect)
int verticalSpacing() const
Generated by doxygen 1.8.16