Layouting::Form Class
class Layouting::FormOrganizza le coppie etichetta-campo in un layout a due colonne (QFormLayout). Altro...
| Header: | #include <Form> |
| Inherits: | Layouting::Layout |
Descrizione dettagliata
Ogni chiamata a addRow() definisce una riga. Se una riga contiene un singolo elemento, si estende su entrambe le colonne (larghezza intera). Se contiene due elementi, il primo diventa l'etichetta e il secondo il campo. Un elemento ` QString ` semplice viene automaticamente racchiuso in un elemento ` QLabel`. Le righe con più di due elementi raggruppano gli elementi in eccesso in un elemento ausiliario ` QHBoxLayout ` nella colonna del campo. I ` QLabel ` vengono impostati automaticamente quando possibile.
Per impostazione predefinita, la politica di espansione del campo è AllNonFixedFieldsGrow.
Vedi anche Layouting::Grid e 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.