The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to the current size.
Más...
#include <qwt_dyngrid_layout.h>
Lista de todos los miembros.
Descripción detallada
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 maxCols()).
Documentación del constructor y destructor
QwtDynGridLayout::QwtDynGridLayout |
( |
QWidget * |
parent, |
|
|
int |
margin = 0 , |
|
|
int |
spacing = -1 |
|
) |
| [explicit] |
- Parámetros:
-
parent | Parent widget |
margin | Margin |
spacing | Spacing |
QwtDynGridLayout::QwtDynGridLayout |
( |
QLayout * |
parent, |
|
|
int |
spacing = -1 |
|
) |
| [explicit] |
- Parámetros:
-
parent | Parent widget |
spacing | Spacing |
QwtDynGridLayout::QwtDynGridLayout |
( |
int |
spacing = -1 | ) |
[explicit] |
QwtDynGridLayout::~QwtDynGridLayout |
( |
| ) |
[virtual] |
Documentación de las funciones miembro
void QwtDynGridLayout::addItem |
( |
QLayoutItem * |
item | ) |
[virtual] |
Adds item to the next free position.
Implementa QLayout.
uint QwtDynGridLayout::columnsForWidth |
( |
int |
width | ) |
const [virtual] |
Returns whether this layout can make use of more space than sizeHint(). A value of Vertical or Horizontal means that it wants to grow in only one dimension, while BothDirections means that it wants to grow in both dimensions.
- Ver también:
- QwtDynGridLayout::setExpanding()
Reimplementado de QLayout.
bool QwtDynGridLayout::hasHeightForWidth |
( |
| ) |
const [virtual] |
int QwtDynGridLayout::heightForWidth |
( |
int |
width | ) |
const [virtual] |
void QwtDynGridLayout::invalidate |
( |
| ) |
[virtual] |
Invalidates cached information. Reimplementations must call this.
Reimplementado de QLayout.
bool QwtDynGridLayout::isEmpty |
( |
void |
| ) |
const [virtual] |
- Devuelve:
- true if this layout is empty.
Reimplementado de QLayout.
uint QwtDynGridLayout::itemCount |
( |
| ) |
const |
- Devuelve:
- number of layout items
- Devuelve:
- An iterator over the children of this layout.
Implementa QLayout.
void QwtDynGridLayout::layoutGrid |
( |
uint |
numCols, |
|
|
QwtArray< int > & |
rowHeight, |
|
|
QwtArray< int > & |
colWidth |
|
) |
| const [protected] |
Calculate the dimensions for the columns and rows for a grid of numCols columns.
- Parámetros:
-
numCols | Number of columns. |
rowHeight | Array where to fill in the calculated row heights. |
colWidth | Array where to fill in the calculated column widths. |
Calculate the geometries of the layout items for a layout with numCols columns and a given rect.
- Parámetros:
-
rect | Rect where to place the items |
numCols | Number of columns |
- Devuelve:
- item geometries
uint QwtDynGridLayout::maxCols |
( |
| ) |
const |
int QwtDynGridLayout::maxItemWidth |
( |
| ) |
const [virtual] |
- Devuelve:
- the maximum width of all layout items
uint QwtDynGridLayout::numCols |
( |
| ) |
const |
- Devuelve:
- Number of columns of the current layout.
- Ver también:
- QwtDynGridLayout::numRows
- Atención:
- The number of columns might change whenever the geometry changes
uint QwtDynGridLayout::numRows |
( |
| ) |
const |
- Devuelve:
- Number of rows of the current layout.
- Ver también:
- QwtDynGridLayout::numCols
- Atención:
- The number of rows might change whenever the geometry changes
Set whether this layout can make use of more space than sizeHint(). A value of Vertical or Horizontal means that it wants to grow in only one dimension, while BothDirections means that it wants to grow in both dimensions. The default value is NoDirection.
- Ver también:
- QwtDynGridLayout::expanding()
void QwtDynGridLayout::setGeometry |
( |
const QRect & |
rect | ) |
[virtual] |
Reorganizes columns and rows and resizes managed widgets within the rectangle rect.
Implementa QLayout.
void QwtDynGridLayout::setMaxCols |
( |
uint |
maxCols | ) |
|
QSize QwtDynGridLayout::sizeHint |
( |
| ) |
const [virtual] |
void QwtDynGridLayout::stretchGrid |
( |
const QRect & |
rect, |
|
|
uint |
numCols, |
|
|
QwtArray< int > & |
rowHeight, |
|
|
QwtArray< int > & |
colWidth |
|
) |
| const [protected] |
La documentación para esta clase fue generada a partir de los siguientes ficheros: