C
RowLayout QML Type
与GridLayout 完全相同,但仅有一行。更多...
| Import Statement: | import QtQuick.Layouts |
| Since: | Qt Quick Ultralite 2.8 |
| Inherits: | |
| Inherited By: |
属性
- layoutDirection : Qt::LayoutDirection
- spacing : int
详细说明
RowLayout 的行为遵循 Qt Quick Layouts中的相同 QML 类型的行为。请参阅《Qt Quick Layouts 概述》,以了解Qt Quick Layouts 模块的一般工作机制。
RowLayout 作为一种便利工具提供给开发者,因为它提供了更简洁的 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
另请参阅 ColumnLayout 、GridLayout 以及Row 。
属性文档
layoutDirection : Qt::LayoutDirection
该属性用于指定行布局的方向——它控制项目是从左到右还是从右到左排列。如果指定了Qt.RightToLeft ,则左对齐的项目将变为右对齐,右对齐的项目将变为左对齐。
另请参阅 ` GridLayout::layoutDirection ` 和 `ColumnLayout::layoutDirection`。
spacing : int [default]
该属性用于控制各单元格之间的间距。
在某些 Qt 许可证下可用。
了解更多信息。