Na tej stronie

Layouting::Form Class

class Layouting::Form

Uporządkowuje pary etykiet i pól w układzie dwukolumnowym (QFormLayout). Więcej...

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

Szczegółowy opis

Każde wywołanie funkcji addRow() definiuje jeden wiersz. Jeśli wiersz zawiera jedną pozycję, zajmuje obie kolumny (pełna szerokość). Jeśli zawiera dwie pozycje, pierwsza z nich staje się etykietą, a druga – polem. Zwykły element ` QString ` jest automatycznie zawijany w element ` QLabel`. Wiersze zawierające więcej niż dwa elementy umieszczają dodatkowe elementy w pomocniczym elemencie ` QHBoxLayout ` w kolumnie pola. Pary elementów ` QLabel ` są ustalane automatycznie, gdy jest to możliwe.

Domyślnie polityka rozszerzania pola to AllNonFixedFieldsGrow.

Zobacz także Layouting::Grid oraz 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.