RowLayout QML Type

Identical to GridLayout, but having only one row. More...

Import Statement: import QtQuick.Layouts
Since: Qt Quick Ultralite 2.8



Detailed Description

The RowLayout 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.

RowLayout is available as a convenience for developers, as it offers a cleaner API.

Items in a RowLayout support these attached properties:

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 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:

Qt.LeftToRightItems are laid out from left to right (default).
Qt.RightToLeftItems are laid out from right to left

See also GridLayout::layoutDirection and ColumnLayout::layoutDirection.

[default] spacing : int

This property holds the spacing between each cell.

Available under certain Qt licenses.
Find out more.