Qt Quick Layouts
Qt Quick Layouts は、ユーザーインターフェースのアイテムを配置するために使われるQML型の集合です。ポジショナーとは対照的に、Qt Quick Layouts は子アイテムのサイズも変更することができます。そのため、サイズ変更可能なユーザーインターフェースに適しています。
まずは、Qt Quick Layouts Overviewのページをご覧ください。
モジュールの使い方
モジュールのQML型は、QtQuick.Layouts
のインポートから利用できます。この型を使うには、.qmlファイルに以下のimport文を追加してください:
import QtQuick.Layouts
レイアウト
GridLayoutと同じですが、カラムが1つしかありません。 | |
QMLコンストラクトはクイックアイテムのためのフレックスレイアウトを提供します。 | |
アイテムを動的にグリッドに配置する方法を提供します。 | |
GridLayout、RowLayout、ColumnLayoutにプッシュされたアイテムのプロパティを提供します。 | |
レイアウト内のQQuickItemsのプレースホルダ | |
GridLayoutと同じですが、行が1つしかありません。 | |
一度に1つのアイテムのみが表示されるアイテムのスタック |
記事とガイド
例
リファレンス
関連モジュール
ライセンス
Qt Quick Layouts は、Qt Company の商用ライセンスで利用できます。また、フリーソフトウェアライセンスでも提供されています。Qt 5.4 以降、これらのフリーソフトウェアライセンスはGNU Lesser General Public License, version 3、またはGNU General Public License, version 2 です。詳細は、「Qt ライセンス」を参照してください。
© 2025 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.