Na ovoj stranici

Layouting::Form Class

class Layouting::Form

Raspoređuje parove oznaka i polja u raspored dviju stupaca (QFormLayout). Više...

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

Detaljan opis

Svaki poziv addRow() definira jedan redak. Ako redak sadrži samo jedan element, prostire se na obje kolone (puna širina). Ako sadrži dva elementa, prvi postaje oznaka, a drugi polje. Obični QString automatski se umeće u QLabel. Redak s više od dva stavka smješta dodatne stavke u pomoćni QHBoxLayout u stupcu polja. QLabel buddies automatski se postavljaju kad god je to moguće.

Po zadanom je politika rasta polja AllNonFixedFieldsGrow.

Vidi također Layouting::Grid i 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.