MenuSeparator QML Type
메뉴 내의 항목 그룹을 인접한 항목들과 구분합니다. 더 보기...
| Import Statement: | import QtQuick.Controls |
| Inherits: |
상세 설명
MenuSeparator는 메뉴 내 항목 그룹을 선으로 구분하여 시각적으로 구별하는 데 사용됩니다.

import QtQuick
import QtQuick.Controls.Basic
Menu {
id: menu
MenuItem {
text: qsTr("New...")
}
MenuItem {
text: qsTr("Open...")
}
MenuItem {
text: qsTr("Save")
}
MenuSeparator {
padding: 0
topPadding: 12
bottomPadding: 12
contentItem: Rectangle {
implicitWidth: 200
implicitHeight: 1
color: "#1E000000"
}
}
MenuItem {
text: qsTr("Exit")
}
}‘메뉴 사용자 지정’, ‘ Menu ’ 및 ‘Separator 컨트롤’항목도 참조하십시오 .
© 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.