レイアウトの例

水平レイアウト、グリッドレイアウト、フォームレイアウトの各タイプを示すダイアログ

Qt では、ウィジェットの管理にレイアウトベースのアプローチを採用しています。ウィジェットは、シンプルなレイアウトルールに基づいてウィンドウ内の最適な位置に配置されるため、一貫した外観と操作感が得られます。カスタムレイアウトを使用すると、子ウィジェットの位置やサイズをより細かく制御できます。

これらのQt の例では、レイアウト内でウィジェットを設定するさまざまな方法を示しています。

「レイアウト管理」も参照してください 。

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