Layouting::Form Class
class Layouting::FormРозміщує пари «мітка-поле» у двоколонковому макеті форми (QFormLayout). Детальніше...
| Header: | #include <Form> |
| Inherits: | Layouting::Layout |
Детальний опис
Кожен виклик функції addRow() визначає один рядок. Якщо рядок містить один елемент, він займає обидва стовпці (повна ширина). Якщо він містить два елементи, перший стає міткою, а другий — полем. Простий елемент ` QString ` автоматично обертається в ` QLabel`. Рядки з більш ніж двома елементами розміщують додаткові елементи у допоміжному елементі ` QHBoxLayout ` у стовпці поля. Елементи-партнери ` QLabel ` встановлюються автоматично, коли це можливо.
За замовчуванням політикою розширення поля є « AllNonFixedFieldsGrow ».
Див. також Layouting::Grid та 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.