Layouting::Form Class
class Layouting::FormArranges label-field pairs in a two-column form layout (QFormLayout). More...
| Header: | #include <layoutbuilder.h> |
| 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.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.