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
.
© 2019 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.