이 페이지에서

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.