MenuBarItem QML Type

MenuBar...에 드롭다운 메뉴를 표시합니다.. ..

Import Statement: import QtQuick.Controls
Inherits:

AbstractButton

속성

신호

상세 설명

MenuBarMenuBarItem은 키보드, 마우스 또는 터치를 통해 MenuBarItem이 triggered 일 때 해당 드롭다운 메뉴가 표시됩니다.

MenuBar 에 대한 기본 delegate 유형으로 사용됩니다. MenuBar 을 사용할 때 MenuBarItem 인스턴스를 직접 선언할 필요는 없습니다. Menu 인스턴스를 MenuBar 의 자식으로 선언하는 것으로 충분하며 각 항목은 자동으로 생성됩니다.

메뉴바 사용자 정의하기, MenuBar메뉴 컨트롤을참조하세요 .

속성 문서

highlighted : bool

이 속성은 메뉴 모음 항목이 사용자에 의해 강조 표시되는지 여부를 보유합니다.

메뉴 모음 항목은 마우스 가리키기 또는 키보드 탐색으로 강조 표시할 수 있습니다.

기본값은 false 입니다.


이 속성은 이 항목이 메뉴 모음에 표시하는 메뉴를 보유하며, 메뉴가 없는 경우 null 을 보유합니다.


이 속성은 이 항목이 포함된 메뉴 모음, 또는 메뉴 모음에 없는 경우 null 을 보유합니다.


문서 신호

void triggered()

이 신호는 메뉴 모음 항목이 사용자에 의해 트리거될 때 발생합니다.

참고: 해당 핸들러는 onTriggered 입니다.


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