Layouting::If Class
class Layouting::IfIntègre de manière conditionnelle des éléments de mise en page en fonction d'une condition booléenne. En savoir plus…
| Header: | #include <If> |
Description détaillée
Utilisez l'opérateur « >> » pour enchaîner une clause « Then » et une clause « Else » facultative :
Column {
If(condition) >> Then { label1, label2 } >> Else { label3 },
}Au moment de la construction, la condition est évaluée et la liste des éléments correspondants est intégrée dans la mise en page englobante.
Voir également « Layouting::Then » et « 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.