このページでは

Qt Quick レイアウト - 基本的な例

レイアウトの種類を使用してUIを配置する方法を示します。

テキストフィールドとボタンを配置した行レイアウト、ラベル付き入力フィールドと横並びのテキストを配置したグリッドレイアウト

この例では、GridLayout 、RowLayout 、およびColumnLayout を使用して、UIコンポーネントをレイアウトに簡単に配置する方法を示します。

例の動作確認

以下の手順で例を実行できます。

code.qt.io のサンプルプロジェクト

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