Qt Quick Layouts QML 类型

The Qt Quick Layouts module provides QML types for arranging QML items in a user interface. These QML types work in conjunction with Qt Quick and Qt Quick Controls .

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

import QtQuick.Layouts
					

ColumnLayout

等同 GridLayout,但只有一列

GridLayout

提供在栅格中动态排列项的方式

Layout

为把项压入 GridLayout、RowLayout 或 ColumnLayout 提供附加特性

LayoutItemProxy

Placeholder for QQuickItems in layouts

RowLayout

等同 GridLayout,但只有一行

StackLayout

每次仅一项可见的项堆栈

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