このページでは

Layouting::If Class

class Layouting::If

ブール値の条件に基づいて、レイアウト項目を条件付きで含めます。詳細...

Header: #include <If>

詳細な説明

>> 演算子を使用すると、Then節とオプションのElse節を連結できます:

Column {
    If(condition) >> Then { label1, label2 } >> Else { label3 },
}

生成時に条件が評価され、条件に一致するアイテムリストが囲んでいるレイアウトにインラインで埋め込まれます。

「 Layouting::Then 」および「Layouting::Else 」も参照してください 。

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.