Menu QML Type
A styled popup menu with Fluent Design theming. More...
| Import Statement: | import FluentUI 1.0 |
Properties
- cascade : bool
- contentItem : Item
- title : string
Detailed Description
Menu is a QML component that extends QtQuick.Controls.Menu with Fluent Design theme support. It provides a popup menu container with cascading submenu support, styled with the current theme's background, elevation shadow, and typography.
Usage Example
import QtQuick import FluentUI Menu { title: "File" MenuItem { text: "New" } MenuItem { text: "Open" } MenuSeparator {} MenuItem { text: "Exit" } }
See also QtQuick.Controls.Menu, MenuItem, and MenuBar.
Property Documentation
cascade : bool
Whether submenus open in a cascading position (to the right of the parent menu) rather than overlapping. The default value is true.
contentItem : Item
The content item of the menu. This property is inherited from QtQuick.Controls.Menu.
title : string
The title of the menu, used as the text for the menu bar item that opens this menu. This property is inherited from QtQuick.Controls.Menu.