セパレータコントロール

Qt Quick コントロールは、セパレータの選択を提供します。

MenuSeparator

メニュー内の項目グループを隣接する項目から分離します。

ToolSeparator

ツールバーのアイテムグループを隣接するアイテムから分離する

セパレータにはそれぞれ固有の使用例があります。以下のセクションでは、ユースケースに応じて適切なセパレータのタイプを選択するためのガイドラインを提供します。

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

ToolSeparator コントロール

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

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