Skip to content

MenuBar

Fluent styled MenuBar.

import QtQuick.Controls.QWinUI3 · src/style/QWinUI3/MenuBar.qml

Category: Styled controls · Library: v3.56

← Component index

Gallery: MenuBar — src/gallery/pages/MenuBarPage.qml

Python: same QML type after qwinui3.setup_engine() — Python API.

Example

ApplicationWindow {
    menuBar: MenuBar {
        Menu {
            title: qsTr("File")
            MenuItem { text: qsTr("Exit") }
        }
    }
}

Notes

Style-only Fluent chrome for Qt Quick Controls MenuBar. Public API is the Qt Quick Controls MenuBar type; this file supplies visuals/metrics only.

API

Style-only control: no extra QWinUI3 properties. Use the Qt Quick Controls MenuBar API (this file only supplies Fluent visuals / metrics).


Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.