이 페이지에서

Layouting::Form Class

class Layouting::Form

라벨-필드 쌍을 2열 형식 레이아웃으로 배열합니다 (QFormLayout). 더 보기...

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

상세 설명

addRow()를 호출할 때마다 한 행이 정의됩니다. 행에 항목이 하나만 포함되면 두 열 전체를 차지합니다(전체 너비). 항목이 두 개 포함된 경우, 첫 번째 항목은 레이블이 되고 두 번째 항목은 필드가 됩니다. 일반 QString 는 자동으로 QLabel 로 감싸집니다. 항목이 두 개 이상인 행의 경우, 추가 항목들은 필드 열의 보조 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.