Logo FluentUI

MenuBar QML Type

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

Import Statement: import FluentUI 1.0

Properties

Detailed Description

MenuBar is a QML component that extends QtQuick.Controls.MenuBar with Fluent Design theme support. It provides a horizontal bar for organizing menus, styled with the current theme's background color and typography.

Usage Example

 import QtQuick
 import FluentUI

 MenuBar {
     Menu {
         title: "File"
         MenuItem { text: "New" }
         MenuItem { text: "Exit" }
     }
     Menu {
         title: "Help"
         MenuItem { text: "About" }
     }
 }

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

Property Documentation

contentItem : Item

The content item of the menu bar. This property is inherited from QtQuick.Controls.MenuBar.

spacing : real

The spacing between menu bar items in pixels. This property is inherited from QtQuick.Controls.MenuBar.