このページでは

ToolSeparator QML Type

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

Import Statement: import QtQuick.Controls
Inherits:

Control

プロパティ

詳細な説明

ToolSeparator は、ツールバー内の項目のグループを線で区切ることで、視覚的に区別するために使用されます。orientation プロパティを、それぞれQt.Vertical またはQt.Horizontal に設定することで、水平または垂直のツールバーで使用できます。

ツールバーのボタンを区切るツールセパレータ

ToolBar {
    RowLayout {
        anchors.fill: parent

        ToolButton {
            text: qsTr("Action 1")
        }
        ToolButton {
            text: qsTr("Action 2")
        }

        ToolSeparator {}

        ToolButton {
            text: qsTr("Action 3")
        }
        ToolButton {
            text: qsTr("Action 4")
        }

        ToolSeparator {}

        ToolButton {
            text: qsTr("Action 5")
        }
        ToolButton {
            text: qsTr("Action 6")
        }

        Item {
            Layout.fillWidth: true
        }
    }
}

「ToolSeparatorおよびSeparatorコントロールのカスタマイズ」も参照してください 。

プロパティのドキュメント

horizontal : bool [read-only]

このプロパティは、orientation がQt.Horizontal と等しいかどうかを表します。

これは、ToolSeparatorをカスタマイズする際に役立ちます。

「 orientation 」および「vertical 」も参照してください 。

orientation : enumeration

このプロパティは、ツールセパレータの向きを指定します。

有効な値:

定数説明
Qt.Horizontal垂直ツールバーで水平セパレータが使用されます。
Qt.Vertical水平ツールバーで垂直セパレータが使用されます。(既定値)

vertical : bool [read-only]

このプロパティは、orientation がQt.Vertical と等しい場合に成立します。

これは、ToolSeparatorをカスタマイズする際に役立ちます。

「 orientation 」および「horizontal 」も参照してください 。

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