Layouting::If Class
class Layouting::IfFügt Layoutelemente basierend auf einer booleschen Bedingung bedingt ein. Mehr...
| Header: | #include <If> |
Ausführliche Beschreibung
Verwenden Sie den Operator „ >> “, um eine „Then“-Klausel und eine optionale „Else“-Klausel zu verketten:
Column {
If(condition) >> Then { label1, label2 } >> Else { label3 },
}Bei der Erstellung wird die Bedingung ausgewertet und die Liste der übereinstimmenden Elemente wird in das umgebende Layout eingebettet.
Siehe auch „ Layouting::Then “ und „ 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.