Qt Quick レイアウト

Qt Quick レイアウトは、ユーザーインターフェースのアイテムを並べるために使われるQMLの型群です。ポジショナーとは対照的に、 レイアウトは子アイテムのサイズも変更することができます。そのため、サイズ変更可能なユーザーインターフェースに適しています。Qt Quick

まずは、Qt Quick レイアウトの概要ページをご覧ください。

モジュールの使い方

このモジュールのQML型は、QtQuick.Layouts のインポートから利用できます。この型を使うには、.qmlファイルに以下のimport文を追加してください:

import QtQuick.Layouts

レイアウト

ColumnLayout

GridLayoutと同じですが、列が1つしかありません。

GridLayout

グリッド内のアイテムを動的に配置する方法を提供します。

Layout

GridLayout、RowLayout、またはColumnLayoutにプッシュされたアイテムのプロパティを提供します。

LayoutItemProxy

レイアウト内のQQuickItemsのプレースホルダ

RowLayout

GridLayoutと同じですが、行が1つしかありません。

StackLayout

一度に1つのアイテムのみが表示されるアイテムのスタック

記事とガイド

リファレンス

ライセンス

Qt Quick Layouts はThe 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.