このページでは

セパレータ・コントロール

Qt Quick 「コントロール」では、さまざまなセパレータが用意されています。

MenuSeparator

メニュー内の項目グループを、隣接する項目から区切ります

ToolSeparator

ツールバー内の項目のグループを、隣接する項目から区切ります

セパレータの種類ごとに、それぞれ固有のユースケースがあります。以下のセクションでは、ユースケースに応じて適切なセパレータの種類を選択するためのガイドラインを紹介します。

メニュー項目を区切るメニュー区切り線

MenuSeparator は、メニュー内の項目(通常はMenuItem コントロール)を区切るために使用します。関連するメニュー項目をグループ化することで、ユーザーがメニューを操作しやすくなります。たとえば、一般的なデスクトップユーザーインターフェースでは、「Undo 」と「Redo 」の項目を1つのグループにまとめ、「Cut 」、「Copy 」、「Paste 」を別のグループにまとめることができます。

ToolSeparator コントロール

ツールバーのボタンを区切る区切り線

ToolSeparator は、ToolBar 内の項目(通常はToolButton コントロール)を区切るために使用します。水平または垂直のツールバーで使用できます。

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