Ezen az oldalon

Layouting::Form Class

class Layouting::Form

A címke-mező párokat kétoszlopos elrendezésben rendezi el (QFormLayout). További információk...

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

Részletes leírás

Minden addRow() hívás egy sort határoz meg. Ha egy sor egyetlen elemet tartalmaz, akkor mindkét oszlopot kitölti (teljes szélességű). Ha két elemet tartalmaz, akkor az első lesz a címke, a második pedig a mező. Egy egyszerű QString automatikusan QLabel-be kerül. A kétnél több elemet tartalmazó sorok a további elemeket egy kiegészítő QHBoxLayout -be csomagolják a mező oszlopában. A QLabel társítások automatikusan beállítódnak, ha lehetséges.

Alapértelmezés szerint a mező bővítési szabálya „ AllNonFixedFieldsGrow ”.

Lásd még: Layouting::Grid és 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.