The QFormLayout class manages forms of input widgets and their associated labels. More...
#include <QFormLayout>Inherits: QLayout.
This class was introduced in Qt 4.4.
| enum | FieldGrowthPolicy { FieldsStayAtSizeHint, ExpandingFieldsGrow, AllNonFixedFieldsGrow } |
| enum | ItemRole { LabelRole, FieldRole, SpanningRole } |
| enum | RowWrapPolicy { DontWrapRows, WrapLongRows, WrapAllRows } |
|
|
| QFormLayout ( QWidget * parent = 0 ) | |
| ~QFormLayout () | |
| void | addRow ( QWidget * label, QWidget * field ) |
| void | addRow ( QWidget * label, QLayout * field ) |
| void | addRow ( const QString & labelText, QWidget * field ) |
| void | addRow ( const QString & labelText, QLayout * field ) |
| void | addRow ( QWidget * widget ) |
| void | addRow ( QLayout * layout ) |
| FieldGrowthPolicy | fieldGrowthPolicy () const |
| Qt::Alignment | formAlignment () const |
| void | getItemPosition ( int index, int * rowPtr, ItemRole * rolePtr ) const |
| void | getLayoutPosition ( QLayout * layout, int * rowPtr, ItemRole * rolePtr ) const |
| void | getWidgetPosition ( QWidget * widget, int * rowPtr, ItemRole * rolePtr ) const |
| int | horizontalSpacing () const |
| void | insertRow ( int row, QWidget * label, QWidget * field ) |
| void | insertRow ( int row, QWidget * label, QLayout * field ) |
| void | insertRow ( int row, const QString & labelText, QWidget * field ) |
| void | insertRow ( int row, const QString & labelText, QLayout * field ) |
| void | insertRow ( int row, QWidget * widget ) |
| void | insertRow ( int row, QLayout * layout ) |
| QLayoutItem * | itemAt ( int row, ItemRole role ) const |
| Qt::Alignment | labelAlignment () const |
| QWidget * | labelForField ( QWidget * field ) const |
| QWidget * | labelForField ( QLayout * field ) const |
| int | rowCount () const |
| RowWrapPolicy | rowWrapPolicy () const |
| void | setFieldGrowthPolicy ( FieldGrowthPolicy policy ) |
| void | setFormAlignment ( Qt::Alignment alignment ) |
| void |