Qt Quick Layouts QML Types
该 Qt Quick Layouts 模块提供了用于在用户界面中排列 QML 项的 QML 类型。这些 QML 类型与 Qt Quick 和 Qt Quick Controls配合使用。
您可以在 .qml 文件中使用以下导入语句,将这些 QML 类型导入到您的应用程序中。
import QtQuick.Layouts与 GridLayout 相同,但仅有一列 | |
QML 构造为快速项目提供了一种弹性布局 | |
提供了一种在网格中动态排列项的方法 | |
为推入 GridLayout、RowLayout 或 ColumnLayout 中的项目提供附着属性 | |
布局中 QQuickItem 的占位符 | |
与 GridLayout 完全相同,但仅有一行 | |
项目堆栈,每次仅显示一个项目 |
© 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.