Na této stránce

Layouting::Form Class

class Layouting::Form

Uspořádá dvojice štítků a polí do dvou sloupců (QFormLayout). Více...

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

Podrobný popis

Každé volání funkce addRow() definuje jeden řádek. Pokud řádek obsahuje jednu položku, zabírá oba sloupce (plná šířka). Pokud obsahuje dvě položky, první se stane popiskem a druhá polem. Prostý tag ` QString ` je automaticky zabalen do tagu ` QLabel`. Řádky s více než dvěma položkami zabalí přebytečné položky do pomocného tagu ` QHBoxLayout ` ve sloupci pole. Spojky typu ` QLabel ` se nastavují automaticky, je-li to možné.

Ve výchozím nastavení je zásada rozšiřování pole „ AllNonFixedFieldsGrow “.

Viz také Layouting::Grid a 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.