Qt Quick Layouts

Qt Quick Layouts are a set of QML types used to arrange items in a user interface. In contrast to positioners, Qt Quick Layouts can also resize their items. This makes them well suited for resizable user interfaces. Since layouts are items they can consequently be nested.

Visit the Qt Quick Layouts Overview page to get started.

Using the Module

The QML types can be imported into your application by adding the following import statement in your .qml file.

import QtQuick.Layouts

Licenses

Qt Quick Layouts is available under commercial licenses from The Qt Company. In addition, it is available under free software licenses. Since Qt 5.4, these free software licenses are GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.

Layouts

ColumnLayout

Identical to GridLayout, but having only one column

GridLayout

Provides a way of dynamically arranging items in a grid

Layout

Provides attached properties for items pushed onto a GridLayout, RowLayout or ColumnLayout

RowLayout

Identical to GridLayout, but having only one row

StackLayout

Stack of items where only one item is visible at a time

© 2021 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.