RowLayout
Identical to GridLayout, but having only one row. More...
Import Statement: | import QtQuick.Layouts 1.1 |
Inherits: |
Properties
- layoutDirection : enumeration
- spacing : real
Detailed Description
It is available as a convenience for developers, as it offers a cleaner API.
Items in a RowLayout support these attached properties:
- Layout.minimumWidth
- Layout.minimumHeight
- Layout.preferredWidth
- Layout.preferredHeight
- Layout.maximumWidth
- Layout.maximumHeight
- Layout.fillWidth
- Layout.fillHeight
- Layout.alignment
Read more about attached properties here.
See also ColumnLayout, GridLayout, and Row.
Property Documentation
layoutDirection : enumeration |
This property holds the layout direction of the row layout - it controls whether items are laid out from left ro right or right to left. If Qt.RightToLeft is specified, left-aligned items will be right-aligned and right-aligned items will be left-aligned.
Possible values:
- Qt.LeftToRight (default) - Items are laid out from left to right.
- Qt.RightToLeft - Items are laid out from right to left
This QML property was introduced in QtQuick.Layouts 1.1.
See also GridLayout::layoutDirection and ColumnLayout::layoutDirection.
spacing : real |
This property holds the spacing between each cell. The default value is 5.