Logo FluentUI

MenuBarItem QML Type

A styled menu bar item with Fluent Design theming. More...

Import Statement: import FluentUI 1.0

Properties

Detailed Description

MenuBarItem is a QML component that extends QtQuick.Controls.MenuBarItem with Fluent Design theme support. It represents an individual item in a MenuBar, typically used to open a Menu, styled with the current theme's colors and typography.

Usage Example

 import QtQuick
 import FluentUI

 MenuBarItem {
     text: "File"
     onClicked: fileMenu.open()
 }

See also QtQuick.Controls.MenuBarItem, MenuBar, and Menu.

Property Documentation

font : font

The font used for the menu bar item text. This property is inherited from QtQuick.Controls.MenuBarItem.

highlighted : bool

Whether the menu bar item is rendered with highlighted styling, typically indicating the item is being hovered or its associated menu is open. The default value is false.

text : string

The text displayed on the menu bar item. This property is inherited from QtQuick.Controls.MenuBarItem.