MenuBar QML Type
기본 메뉴바. 더 보기...
Import Statement: | import Qt.labs.platform |
Inherits: |
속성
방법
- void addMenu(Menu menu)
- void clear()
- void insertMenu(int index, Menu menu)
- void removeMenu(Menu menu)
상세 설명
메뉴바 유형은 네이티브 플랫폼 메뉴바를 위한 QML API를 제공합니다.
메뉴 모음은 드롭다운 메뉴 목록으로 구성됩니다.
MenuBar { id: menuBar Menu { id: fileMenu title: qsTr("File") // ... } Menu { id: editMenu title: qsTr("&Edit") // ... } Menu { id: viewMenu title: qsTr("&View") // ... } Menu { id: helpMenu title: qsTr("&Help") // ... } }
MenuBar는 현재 다음 플랫폼에서 사용할 수 있습니다:
- macOS
- Android
- Linux(글로벌 D-Bus 메뉴 표시줄을 제공하는 데스크톱 환경에서만 사용 가능)
- Windows
참고: Qt.labs 모듈의 유형은 향후 버전에서 호환성을 보장하지 않습니다.
Menu 를참조하세요 .
속성 문서
window : Window |
메서드 문서
void addMenu(Menu menu) |
메뉴 모음 끝에 menu 을 추가합니다.
void clear() |
메뉴 모음에서 모든 메뉴를 제거합니다.
void removeMenu(Menu menu) |
메뉴 모음에서 menu 을 제거합니다.
© 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.