Qt Quick Layouts QML Types

Das Qt Quick Layouts Modul stellt QML-Typen zur Verfügung, mit denen QML-Elemente in einer Benutzeroberfläche angeordnet werden können. Diese QML-Typen arbeiten in Verbindung mit Qt Quick und Qt Quick Controls.

Die QML-Typen können mithilfe der folgenden Importanweisung in Ihrer .qml-Datei in Ihre Anwendung importiert werden.

import QtQuick.Layouts

ColumnLayout

Identisch mit „GridLayout“, verfügt jedoch nur über eine Spalte

FlexboxLayout

Das QML-Konstrukt bietet ein flexibles Layout für die Quick-Elemente

GridLayout

Bietet eine Möglichkeit, Elemente dynamisch in einem Raster anzuordnen

Layout

Stellt angehängte Eigenschaften für Elemente bereit, die in ein „GridLayout“, „RowLayout“ oder „ColumnLayout“ eingefügt werden

LayoutItemProxy

Platzhalter für QQuickItems in Layouts

RowLayout

Identisch mit GridLayout, verfügt jedoch nur über eine Zeile

StackLayout

Stapel von Elementen, bei dem jeweils nur ein Element sichtbar ist

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