このページでは

Layouting::Form Class

class Layouting::Form

ラベルとフィールドのペアを2列のフォームレイアウトに配置します(QFormLayout )。詳細...

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

詳細な説明

addRow() の各呼び出しは、1 行を定義します。行に項目が 1 つだけ含まれる場合、その行は両方の列にまたがります(全幅)。2 つの項目が含まれる場合、最初の項目がラベルとなり、2 番目の項目がフィールドとなります。 単純な `QString ` は、自動的に `QLabel` で囲まれます。3つ以上の項目を含む行では、余分な項目がフィールド列の補助的な `QHBoxLayout ` に詰め込まれます。可能な場合は、QLabel のバディが自動的に設定されます。

デフォルトでは、フィールドの拡張ポリシーは「AllNonFixedFieldsGrow 」です。

「 Layouting::Grid 」および「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.