Qt Quick レイアウト - 基本的な例
レイアウトの種類を使用してUIを配置する方法を示します。

この例では、GridLayout 、RowLayout 、およびColumnLayout を使用して、UIコンポーネントをレイアウトに簡単に配置する方法を示します。
例の動作確認
以下の手順で例を実行できます。
- Qt Creator
Welcome モードを開き、Examples からこの例を選択します。詳細については、「Qt Creator :チュートリアル:ビルドと実行」を参照してください。
- Qt Extension for Visual Studio Code
「Command Palette 」から「Qt: Open Qt examples 」コマンドを実行し、リストからサンプルを選択します。詳細については、Qt Extension for Visual Studio Code の「チュートリアル:ビルドと実行」を参照してください。
© 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.