Layouting::Form Class

class Layouting::Form

Arranges label-field pairs in a two-column form layout (QFormLayout). More...

Header: #include <Form>
Inherits: Layouting::Layout

Detailed Description

Each call to addRow() defines one row. If a row contains a single item it spans both columns (full-width). If it contains two items, the first becomes the label and the second the field. A plain QString is automatically wrapped in a QLabel. Rows with more than two items pack the extra items into an auxiliary QHBoxLayout in the field column. QLabel buddies are set automatically when possible.

By default the field growth policy is AllNonFixedFieldsGrow.

See also Layouting::Grid and Layouting::Layout.