MIRA
Public Member Functions | List of all members
FlowLayout Class Reference

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>

Inheritance diagram for FlowLayout:
Inheritance graph
[legend]

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FlowLayout()

FlowLayout ( QWidget *  parent = NULL)

◆ ~FlowLayout()

~FlowLayout ( )

Member Function Documentation

◆ addItem() [1/2]

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.

◆ addItem() [2/2]

void addItem ( QLayoutItem *  item)
inline

◆ expandingDirections()

Qt::Orientations expandingDirections ( ) const

◆ hasHeightForWidth()

bool hasHeightForWidth ( ) const

◆ heightForWidth()

int heightForWidth ( int  ) const

◆ count()

int count ( ) const

◆ itemAt()

QLayoutItem* itemAt ( int  index) const

◆ minimumSize()

QSize minimumSize ( ) const

◆ setGeometry()

void setGeometry ( const QRect &  rect)

◆ sizeHint()

QSize sizeHint ( ) const

◆ takeAt()

QLayoutItem* takeAt ( int  index)

The documentation for this class was generated from the following file: