이 페이지에서

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.