QwtDynGridLayout(3) | Qwt User's Guide | QwtDynGridLayout(3) |
QwtDynGridLayout - The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to the current size.
#include <qwt_dyngrid_layout.h>
Inherits QLayout.
QwtDynGridLayout (QWidget *, int margin=0, int spacing=-1)
QwtDynGridLayout (int spacing=-1)
virtual ~QwtDynGridLayout ()
Destructor. virtual void invalidate ()
Invalidate all internal caches. void setMaxColumns (uint
maxColumns)
uint maxColumns () const
Return the upper limit for the number of columns. uint numRows () const
uint numColumns () const
virtual void addItem (QLayoutItem *)
Add an item to the next free position. virtual QLayoutItem * itemAt
(int index) const
virtual QLayoutItem * takeAt (int index)
virtual int count () const
void setExpandingDirections (Qt::Orientations)
virtual Qt::Orientations expandingDirections () const
Returns whether this layout can make use of more space than sizeHint().
QList< QRect > layoutItems (const QRect &, uint
numColumns) const
virtual int maxItemWidth () const
virtual void setGeometry (const QRect &rect)
virtual bool hasHeightForWidth () const
virtual int heightForWidth (int) const
virtual QSize sizeHint () const
virtual bool isEmpty () const
uint itemCount () const
virtual uint columnsForWidth (int width) const
Calculate the number of columns for a given width.
void layoutGrid (uint numColumns, QVector< int
> &rowHeight, QVector< int > &colWidth) const
void stretchGrid (const QRect &rect, uint numColumns,
QVector< int > &rowHeight, QVector< int > &colWidth)
const
The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to the current size.
QwtDynGridLayout takes the space it gets, divides it up into rows and columns, and puts each of the widgets it manages into the correct cell(s). It lays out as many number of columns as possible (limited by maxColumns()).
Parameters:
Parameters:
Add an item to the next free position.
Parameters:
Calculate the number of columns for a given width. The calculation tries to use as many columns as possible ( limited by maxColumns() )
Parameters:
Returns:
See also:
Returns:
Returns whether this layout can make use of more space than sizeHint(). A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only one dimension, while Qt::Vertical | Qt::Horizontal means that it wants to grow in both dimensions.
Returns:
See also:
Returns:
See also:
Returns:
See also:
Returns:
Find the item at a specific index
Parameters:
Returns:
See also:
Returns:
Calculate the dimensions for the columns and rows for a grid of numColumns columns.
Parameters:
Calculate the geometries of the layout items for a layout with numColumns columns and a given rectangle.
Parameters:
Returns:
Return the upper limit for the number of columns. 0 means unlimited, what is the default.
Returns:
See also:
Returns:
Returns:
See also:
Warning:
Returns:
See also:
Warning:
Set whether this layout can make use of more space than sizeHint(). A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only one dimension, while Qt::Vertical | Qt::Horizontal means that it wants to grow in both dimensions. The default value is 0.
Parameters:
See also:
Reorganizes columns and rows and resizes managed items within a rectangle.
Parameters:
Limit the number of columns.
Parameters:
See also:
Return the size hint. If maxColumns() > 0 it is the size for a grid with maxColumns() columns, otherwise it is the size for a grid with only one row.
Returns:
See also:
Stretch columns in case of expanding() & QSizePolicy::Horizontal and rows in case of expanding() & QSizePolicy::Vertical to fill the entire rect. Rows and columns are stretched with the same factor.
Parameters:
See also:
Find the item at a specific index and remove it from the layout
Parameters:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |