Definition at line 55 of file qformlayout.h.
#include <qformlayout.h>

Public Types |
|
| enum | FieldGrowthPolicy { FieldsStayAtSizeHint, ExpandingFieldsGrow, AllNonFixedFieldsGrow } |
| enum | RowWrapPolicy { DontWrapRows, WrapLongRows, WrapAllRows } |
| enum | ItemRole { LabelRole = 0, FieldRole = 1, SpanningRole = 2 } |
Public Member Functions |
|
| QFormLayout (QWidget *parent=0) | |
| ~QFormLayout () | |
| void | setFieldGrowthPolicy (FieldGrowthPolicy policy) |
| FieldGrowthPolicy | fieldGrowthPolicy () const |
| void | setRowWrapPolicy (RowWrapPolicy policy) |
| RowWrapPolicy | rowWrapPolicy () const |
| void | setLabelAlignment (Qt::Alignment alignment) |
| Qt::Alignment | labelAlignment () const |
| void | setFormAlignment (Qt::Alignment alignment) |
| Qt::Alignment | formAlignment () const |
| void | setHorizontalSpacing (int spacing) |
| int | horizontalSpacing () const |
| void | setVerticalSpacing (int spacing) |
| int | verticalSpacing () const |
| int | spacing () const |
| void | setSpacing (int) |
| 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) |
| 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) |
| void | setItem (int row, ItemRole role, QLayoutItem *item) |
| void | setWidget (int row, ItemRole role, QWidget *widget) |
| void | setLayout (int row, ItemRole role, QLayout *layout) |
| QLayoutItem * | itemAt (int row, ItemRole role) const |
| void | getItemPosition (int index, int *rowPtr, ItemRole *rolePtr) const |
| void | getWidgetPosition (QWidget *widget, int *rowPtr, ItemRole *rolePtr) const |
| void | getLayoutPosition (QLayout *layout, int *rowPtr, ItemRole *rolePtr) const |
| QWidget * | labelForField (QWidget *field) const |
| QWidget * | labelForField (QLayout *field) const |
| void | addItem (QLayoutItem *item) |
| QLayoutItem * | itemAt (int index) const |
| QLayoutItem * | takeAt (int index) |
| void | setGeometry (const QRect &rect) |
| QSize | minimumSize () const |
| QSize | sizeHint () const |
| void | invalidate () |
| bool | hasHeightForWidth () const |
| int | heightForWidth (int width) const |
| Qt::Orientations | expandingDirections () const |
| int | count () const |
| int | rowCount () const |
Properties |
|
| FieldGrowthPolicy | fieldGrowthPolicy |
| RowWrapPolicy | rowWrapPolicy |
| Qt::Alignment | labelAlignment |
| Qt::Alignment | formAlignment |
| int | horizontalSpacing |
| int | verticalSpacing |
| enum FieldGrowthPolicy |
Definition at line 68 of file qformlayout.h.
| enum RowWrapPolicy |
Definition at line 74 of file qformlayout.h.
{
DontWrapRows,
WrapLongRows,
WrapAllRows
};
| enum ItemRole |
Definition at line 80 of file qformlayout.h.
{
LabelRole = 0,
FieldRole = 1,
SpanningRole = 2
};
| QFormLayout | ( | QWidget * | parent = 0 |
) | [explicit] |
| ~QFormLayout | ( | ) |
| void setFieldGrowthPolicy | ( | FieldGrowthPolicy | policy | ) |
| FieldGrowthPolicy fieldGrowthPolicy | ( | ) | const |
| void setRowWrapPolicy | ( | RowWrapPolicy | policy | ) |
| RowWrapPolicy rowWrapPolicy | ( | ) | const |
| void setLabelAlignment | ( | Qt::Alignment | alignment | ) |
| Qt::Alignment labelAlignment | ( | ) | const |
| void setFormAlignment | ( | Qt::Alignment | alignment | ) |
| Qt::Alignment formAlignment | ( | ) | const |
| void setHorizontalSpacing | ( | int | spacing | ) |
| int horizontalSpacing | ( | ) | const |
| void setVerticalSpacing | ( | int | spacing | ) |
| int verticalSpacing | ( | ) | const |
| int spacing | ( | ) | const |
Reimplemented from QLayout.
| void setSpacing | ( | int | ) |
Reimplemented from QLayout.
| void addRow | ( | QWidget * | widget | ) |
| void addRow | ( | QLayout * | layout | ) |
| void insertRow | ( | int | row, |
| QWidget * | widget | ||
| ) |
| void insertRow | ( | int | row, |
| QLayout * | layout | ||
| ) |
| void setItem | ( | int | row, |
| ItemRole | role, | ||
| QLayoutItem * | item | ||
| ) |
| QLayoutItem* itemAt | ( | int | row, |
| ItemRole | role | ||
| ) | const |
| void getItemPosition | ( | int | index, |
| int * | rowPtr, | ||
| ItemRole * | rolePtr | ||
| ) | const |
| void addItem | ( | QLayoutItem * | item | ) | [virtual] |
Implements QLayout.
| QLayoutItem* itemAt | ( | int | index | ) | const [virtual] |
Implements QLayout.
| QLayoutItem* takeAt | ( | int | index | ) | [virtual] |
Implements QLayout.
| QSize sizeHint | ( | ) | const [virtual] |
Implements QLayoutItem.
| void invalidate | ( | ) | [virtual] |
Reimplemented from QLayout.
| bool hasHeightForWidth | ( | ) | const [virtual] |
Reimplemented from QLayoutItem.
| int heightForWidth | ( | int | width | ) | const [virtual] |
Reimplemented from QLayoutItem.
| Qt::Orientations expandingDirections | ( | ) | const [virtual] |
Reimplemented from QLayout.
| int count | ( | ) | const [virtual] |
Implements QLayout.
| int rowCount | ( | ) | const |
FieldGrowthPolicy
fieldGrowthPolicy [read, write] |
Definition at line 60 of file qformlayout.h.
RowWrapPolicy
rowWrapPolicy [read, write] |
Definition at line 61 of file qformlayout.h.
Qt::Alignment labelAlignment [read,
write] |
Definition at line 62 of file qformlayout.h.
Qt::Alignment formAlignment [read,
write] |
Definition at line 63 of file qformlayout.h.
int horizontalSpacing [read,
write] |
Definition at line 64 of file qformlayout.h.
int verticalSpacing [read,
write] |
Definition at line 65 of file qformlayout.h.