Obsolete Members for Menu
The following members of QML type Menu are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Properties
- data : list<Object>
- enabled : bool
- font : font
- items : list<MenuItem>
- menuBar : MenuBar
- menuItem : MenuItem
- minimumWidth : int
- parentMenu : Menu
- systemTrayIcon : SystemTrayIcon
- title : string
- type : enumeration
- visible : bool
Property Documentation
[default] data : list<Object> |
enabled : bool |
This property holds whether the menu is enabled. The default value is true
.
[read-only] menuBar : MenuBar |
This property holds the menubar that the menu belongs to, or null
if the menu is not in a menubar.
[read-only] menuItem : MenuItem |
This property holds the item that presents the menu (in a parent menu).
minimumWidth : int |
This property holds the minimum width of the menu. The default value is -1
(no minimum width).
[read-only] parentMenu : Menu |
This property holds the parent menu that the menu belongs to, or null
if the menu is not a sub-menu.
[read-only] systemTrayIcon : SystemTrayIcon |
This property holds the system tray icon that the menu belongs to, or null
if the menu is not in a system tray icon.
title : string |
This property holds the menu's title.
type : enumeration |
This property holds the type of the menu.
Available values:
Constant | Description |
---|---|
Menu.DefaultMenu | A normal menu (default). |
Menu.EditMenu | An edit menu with pre-populated cut, copy and paste items. |
visible : bool |
This property holds whether the menu is visible. The default value is true
.