MIRA
|
Layout, where the items are first laid out horizontally and then vertically when each line in the layout runs out of space. More...
#include <widgets/FlowLayout.h>
Public Member Functions | |
FlowLayout (QWidget *parent=NULL) | |
~FlowLayout () | |
void | addItem (QLayoutItem *item, int stretch) |
Adds layout item with additional stretch factor (default=0). More... | |
void | addItem (QLayoutItem *item) |
Qt::Orientations | expandingDirections () const |
bool | hasHeightForWidth () const |
int | heightForWidth (int) const |
int | count () const |
QLayoutItem * | itemAt (int index) const |
QSize | minimumSize () const |
void | setGeometry (const QRect &rect) |
QSize | sizeHint () const |
QLayoutItem * | takeAt (int index) |
Layout, where the items are first laid out horizontally and then vertically when each line in the layout runs out of space.
Can be used like any other layout, e.g. HBoxLayout, etc.
FlowLayout | ( | QWidget * | parent = NULL | ) |
~FlowLayout | ( | ) |
void addItem | ( | QLayoutItem * | item, |
int | stretch | ||
) |
Adds layout item with additional stretch factor (default=0).
The stretch factor controls the Qt layout mechanism. Items with higher stretch factors have a higher priority to fill up the available space.
|
inline |
Qt::Orientations expandingDirections | ( | ) | const |
bool hasHeightForWidth | ( | ) | const |
int heightForWidth | ( | int | ) | const |
int count | ( | ) | const |
QLayoutItem* itemAt | ( | int | index | ) | const |
QSize minimumSize | ( | ) | const |
void setGeometry | ( | const QRect & | rect | ) |
QSize sizeHint | ( | ) | const |
QLayoutItem* takeAt | ( | int | index | ) |