RowLayout QML Type
GridLayout 과 동일하지만 행이 하나만 있습니다. 더 보기...
Import Statement: | import QtQuick.Layouts |
Inherits: |
속성
- layoutDirection : enumeration
(since QtQuick.Layouts 1.1)
- spacing : real
- uniformCellSizes : bool
(since QtQuick.Layouts 6.6)
자세한 설명
이 유형을 보다 효율적으로 사용하려면 Qt Quick 레이아웃 모듈의 일반적인 메커니즘을 이해하는 것이 좋습니다. 자세한 내용은 Qt Quick 레이아웃 개요를 참조하세요.
이 모듈은 보다 깔끔한 API를 제공하므로 개발자의 편의를 위해 사용할 수 있습니다.
RowLayout의 항목은 이러한 첨부 속성을 지원합니다:
- Layout.minimumWidth
- Layout.minimumHeight
- Layout.preferredWidth
- Layout.preferredHeight
- Layout.maximumWidth
- Layout.maximumHeight
- Layout.fillWidth
- Layout.fillHeight
- Layout.alignment
- Layout.margins
- Layout.leftMargin
- Layout.rightMargin
- Layout.topMargin
- Layout.bottomMargin
- Layout.horizontalStretchFactor
- Layout.verticalStretchFactor
RowLayout { id: layout anchors.fill: parent spacing: 6 Rectangle { color: 'teal' Layout.fillWidth: true Layout.minimumWidth: 50 Layout.preferredWidth: 100 Layout.maximumWidth: 300 Layout.minimumHeight: 150 Text { anchors.centerIn: parent text: parent.width + 'x' + parent.height } } Rectangle { color: 'plum' Layout.fillWidth: true Layout.minimumWidth: 100 Layout.preferredWidth: 200 Layout.preferredHeight: 100 Text { anchors.centerIn: parent text: parent.width + 'x' + parent.height } } }
여기에서 첨부 속성에 대해 자세히 알아보세요.
ColumnLayout, GridLayout, StackLayout, Row, Qt Quick 레이아웃 개요도참조하세요 .
속성 문서
layoutDirection : enumeration |
이 속성은 행 레이아웃의 레이아웃 방향을 유지하며, 항목을 왼쪽에서 오른쪽으로 배치할지 오른쪽에서 왼쪽으로 배치할지를 제어합니다. Qt.RightToLeft
을 지정하면 왼쪽 정렬 항목은 오른쪽으로 정렬되고 오른쪽 정렬 항목은 왼쪽으로 정렬됩니다.
사용 가능한 값
상수 | 설명 |
---|---|
Qt.LeftToRight | (기본값) 항목이 왼쪽에서 오른쪽으로 정렬됩니다. |
Qt.RightToLeft | 항목이 오른쪽에서 왼쪽으로 정렬됩니다. |
이 프로퍼티는 QtQuick.Layouts 1.1에 도입되었습니다.
GridLayout::layoutDirection 및 ColumnLayout::layoutDirection 을참조하십시오 .
spacing : real |
이 속성은 각 셀 사이의 간격을 유지합니다. 기본값은 5
입니다.
uniformCellSizes : bool |
이 속성을 true
로 설정하면 레이아웃에서 모든 셀의 크기가 균일해집니다.
이 속성은 QtQuick.Layouts 6.6에 도입되었습니다.
GridLayout::uniformCellWidths, GridLayout::uniformCellHeights, ColumnLayout::uniformCellSizes 를참조하십시오 .
© 2025 The Qt Company Ltd. 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.