A Layout that places widgets left to right, top to bottom.
More...
#include <klfflowlayout.h>
|
| KLFFlowLayout (QWidget *parent, int margin=-1, int hspacing=-1, int vspacing=-1) |
|
virtual | ~KLFFlowLayout () |
|
virtual void | addItem (QLayoutItem *item) |
|
virtual void | addItem (QLayoutItem *item, int hstretch, int vstretch) |
|
virtual void | addLayout (QLayout *l, int hstretch=0, int vstretch=0) |
|
virtual void | addWidget (QWidget *w, int hstretch=0, int vstretch=0, Qt::Alignment align=0) |
|
int | horizontalSpacing () const |
|
int | verticalSpacing () const |
|
Flush | flush () const |
|
virtual int | count () const |
|
virtual QLayoutItem * | itemAt (int index) const |
|
virtual QLayoutItem * | takeAt (int index) |
|
virtual Qt::Orientations | expandingDirections () const |
|
virtual bool | hasHeightForWidth () const |
|
virtual int | heightForWidth (int width) const |
|
virtual QSize | minimumSize () const |
|
virtual QSize | maximumSize () const |
|
virtual QSize | sizeHint () const |
|
void | setGeometry (const QRect &rect) |
|
virtual void | invalidate () |
|
virtual bool | event (QEvent *event) |
|
virtual bool | eventFilter (QObject *obj, QEvent *event) |
|
A Layout that places widgets left to right, top to bottom.
Definition at line 38 of file klfflowlayout.h.
◆ Flush
How to deal with too much space:
Enumerator |
---|
NoFlush | Give the extra space to the widgets to stretch, don't flush.
|
FlushSparse | Distribute the extra space inbetween the widgets to fill the line.
|
FlushBegin | Leave all extra space at end of line.
|
FlushEnd | Leave all extra space at beginning of line.
|
Definition at line 49 of file klfflowlayout.h.
◆ KLFFlowLayout()
KLFFlowLayout::KLFFlowLayout |
( |
QWidget * |
parent, |
|
|
int |
margin = -1 , |
|
|
int |
hspacing = -1 , |
|
|
int |
vspacing = -1 |
|
) |
| |
◆ ~KLFFlowLayout()
KLFFlowLayout::~KLFFlowLayout |
( |
| ) |
|
|
virtual |
◆ addItem() [1/2]
virtual void KLFFlowLayout::addItem |
( |
QLayoutItem * |
item | ) |
|
|
inlinevirtual |
Add a QLayoutItem to the layout. Ownership of the object is taken by the layout: it will be deleted by the layout.
Definition at line 61 of file klfflowlayout.h.
Referenced by addLayout(), and addWidget().
◆ addItem() [2/2]
void KLFFlowLayout::addItem |
( |
QLayoutItem * |
item, |
|
|
int |
hstretch, |
|
|
int |
vstretch |
|
) |
| |
|
virtual |
◆ addLayout()
void KLFFlowLayout::addLayout |
( |
QLayout * |
l, |
|
|
int |
hstretch = 0 , |
|
|
int |
vstretch = 0 |
|
) |
| |
|
virtual |
◆ addWidget()
void KLFFlowLayout::addWidget |
( |
QWidget * |
w, |
|
|
int |
hstretch = 0 , |
|
|
int |
vstretch = 0 , |
|
|
Qt::Alignment |
align = 0 |
|
) |
| |
|
virtual |
◆ clearAll
void KLFFlowLayout::clearAll |
( |
bool |
deleteItems = true | ) |
|
|
slot |
◆ count()
int KLFFlowLayout::count |
( |
| ) |
const |
|
virtual |
◆ event()
bool KLFFlowLayout::event |
( |
QEvent * |
event | ) |
|
|
virtual |
◆ eventFilter()
bool KLFFlowLayout::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
virtual |
◆ expandingDirections()
◆ flush()
◆ hasHeightForWidth()
bool KLFFlowLayout::hasHeightForWidth |
( |
| ) |
const |
|
virtual |
◆ heightForWidth()
int KLFFlowLayout::heightForWidth |
( |
int |
width | ) |
const |
|
virtual |
◆ horizontalSpacing()
int KLFFlowLayout::horizontalSpacing |
( |
| ) |
const |
◆ invalidate()
void KLFFlowLayout::invalidate |
( |
| ) |
|
|
virtual |
◆ itemAt()
QLayoutItem * KLFFlowLayout::itemAt |
( |
int |
index | ) |
const |
|
virtual |
◆ maximumSize()
QSize KLFFlowLayout::maximumSize |
( |
| ) |
const |
|
virtual |
◆ minimumSize()
QSize KLFFlowLayout::minimumSize |
( |
| ) |
const |
|
virtual |
◆ setFlush
void KLFFlowLayout::setFlush |
( |
Flush |
f | ) |
|
|
slot |
◆ setGeometry()
void KLFFlowLayout::setGeometry |
( |
const QRect & |
rect | ) |
|
◆ setHorizontalSpacing
void KLFFlowLayout::setHorizontalSpacing |
( |
int |
spacing | ) |
|
|
slot |
◆ setVerticalSpacing
void KLFFlowLayout::setVerticalSpacing |
( |
int |
spacing | ) |
|
|
slot |
◆ sizeHint()
QSize KLFFlowLayout::sizeHint |
( |
| ) |
const |
|
virtual |
◆ takeAt()
QLayoutItem * KLFFlowLayout::takeAt |
( |
int |
index | ) |
|
|
virtual |
◆ verticalSpacing()
int KLFFlowLayout::verticalSpacing |
( |
| ) |
const |
◆ flush
Flush KLFFlowLayout::flush |
|
readwrite |
◆ horizontalSpacing
int KLFFlowLayout::horizontalSpacing |
|
readwrite |
◆ verticalSpacing
int KLFFlowLayout::verticalSpacing |
|
readwrite |
The documentation for this class was generated from the following files: