C
ColumnLayout QML Type
Identical to GridLayout, but having only one column. More...
Import Statement: | import QtQuick.Layouts |
Since: | Qt Quick Ultralite 2.8 |
Inherits: |
Properties
- layoutDirection : enumeration
- spacing : int
Detailed Description
The ColumnLayout follows the behavior of the same QML type in Qt Quick Layouts. See the Qt Quick Layouts Overview to understand the general mechanism of the Qt Quick Layouts module.
The ColumnLayout is available as a convenience for developers, as it offers a cleaner API.
Items in a ColumnLayout support these attached properties:
- 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
See also RowLayout, GridLayout, and Column.
Property Documentation
layoutDirection : enumeration |
This property holds the layout direction of the column layout - it controls whether items are laid out from left to 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:
Constant | Description |
---|---|
Qt.LeftToRight | Items are laid out from left to right (default). |
Qt.RightToLeft | Items are laid out from right to left |
See also GridLayout::layoutDirection and RowLayout::layoutDirection.
[default] spacing : int |
This property holds the spacing between each cell.
Available under certain Qt licenses.
Find out more.