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

Property Documentation

[default] data : list<Object>

This default property holds the list of all objects declared as children of the menu. The data property includes objects that are not MenuItem instances, such as Timer and QtObject.

See also items.


enabled : bool

This property holds whether the menu is enabled. The default value is true.


font : font

This property holds the menu's font.

See also text.


items : list<MenuItem>

This property holds the list of items in the menu.


This property holds the menubar that the menu belongs to, or null if the menu is not in a menubar.


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:

ConstantDescription
Menu.DefaultMenuA normal menu (default).
Menu.EditMenuAn 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.


© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.